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 10 years ago
parent 73480f4df4
commit 88ae10f611
  1. 2
      {{cookiecutter.app_name}}/tests/conftest.py

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

Loading…
Cancel
Save