Bundling 'test_greenlet_context_copying' functions into a new class in tests/test_reqctx.py.

This commit is contained in:
Rene A. Zelaya 2017-05-23 16:13:19 -07:00
parent 5b0b9717da
commit 2eb28165a9

View file

@ -149,6 +149,8 @@ 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')
class GreenletContextCopying():
def test_greenlet_context_copying(app, client): def test_greenlet_context_copying(app, client):
greenlets = [] greenlets = []
@ -176,8 +178,6 @@ def test_greenlet_context_copying(app, client):
result = greenlets[0].run() result = greenlets[0].run()
assert result == 42 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(app, client):
greenlets = [] greenlets = []