Fix ScopeMismatch error when testing

The `testapp` fixture depends on the `app` fixture, but the `app` fixture's
scope was redefined as 'function' in commit 35c32e, which is narrower than
the scope of `testapp` ('session').

Since `testapp` only depends only on `app`, it is safe to make it's scope match
`app`.
master
Patman64 9 years ago
parent 73480f4df4
commit 88ae10f611
  1. 2
      {{cookiecutter.app_name}}/tests/conftest.py

@ -21,7 +21,7 @@ def app():
ctx.pop()
@pytest.fixture(scope='session')
@pytest.fixture(scope='function')
def testapp(app):
"""A Webtest app."""
return TestApp(app)

Loading…
Cancel
Save