Skip to content

Commit

Permalink
New syntax for pytest fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichar1 committed Aug 9, 2021
1 parent 2363190 commit 9dbfb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_examples/pytest_example/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9dbfb78

Please sign in to comment.