forked from orbit-oss/flask
Merge pull request #2324 from rzelayafavila/2313-refactor-gevent-tests-into-class
Fix for Issue 2313 - refactoring gevent tests into class
This commit is contained in:
commit
c62b614d9c
1 changed files with 43 additions and 43 deletions
|
|
@ -149,7 +149,9 @@ def test_manual_context_binding(app):
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(greenlet is None, reason='greenlet not installed')
|
@pytest.mark.skipif(greenlet is None, reason='greenlet not installed')
|
||||||
def test_greenlet_context_copying(app, client):
|
class TestGreenletContextCopying(object):
|
||||||
|
|
||||||
|
def test_greenlet_context_copying(self, app, client):
|
||||||
greenlets = []
|
greenlets = []
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
|
@ -176,9 +178,7 @@ def test_greenlet_context_copying(app, client):
|
||||||
result = greenlets[0].run()
|
result = greenlets[0].run()
|
||||||
assert result == 42
|
assert result == 42
|
||||||
|
|
||||||
|
def test_greenlet_context_copying_api(self, app, client):
|
||||||
@pytest.mark.skipif(greenlet is None, reason='greenlet not installed')
|
|
||||||
def test_greenlet_context_copying_api(app, client):
|
|
||||||
greenlets = []
|
greenlets = []
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue