Browse Source

Merge pull request #2324 from rzelayafavila/2313-refactor-gevent-tests-into-class

Fix for Issue 2313 - refactoring gevent tests into class
pull/1365/merge
David Lord 7 years ago committed by GitHub
parent
commit
c62b614d9c
  1. 8
      tests/test_reqctx.py

8
tests/test_reqctx.py

@ -149,7 +149,9 @@ def test_manual_context_binding(app):
@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 = []
@app.route('/')
@ -176,9 +178,7 @@ def test_greenlet_context_copying(app, client):
result = greenlets[0].run()
assert result == 42
@pytest.mark.skipif(greenlet is None, reason='greenlet not installed')
def test_greenlet_context_copying_api(app, client):
def test_greenlet_context_copying_api(self, app, client):
greenlets = []
@app.route('/')

Loading…
Cancel
Save