From 9dbfb78b9b45dd6b61d1d7e0ce9c00f0aecbbeda Mon Sep 17 00:00:00 2001 From: Matthew Richardson Date: Mon, 9 Aug 2021 15:53:28 +0100 Subject: [PATCH] New syntax for pytest fixtures. --- test_examples/pytest_example/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_examples/pytest_example/tests.py b/test_examples/pytest_example/tests.py index f9f9762..d2647c4 100644 --- a/test_examples/pytest_example/tests.py +++ b/test_examples/pytest_example/tests.py @@ -48,8 +48,8 @@ def abspath(pth): abspath('sample_apps/gae'), port=PORT) - -@pytest.fixture('module', APPS) +# Create an app instance for each app in APPS +@pytest.fixture(scope='module', params=APPS.keys()) def app(request): app = APPS[request.param] app.name = request.param