Merge pull request #3125 from alphagov/faster-tests

Create the app once per run, not once per test
This commit is contained in:
Chris Hill-Scott
2019-09-20 10:33:44 +01:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class ElementNotFound(Exception):
pass
@pytest.fixture
@pytest.fixture(scope='session')
def app_(request):
app = Flask('app')
create_app(app)
@@ -47,8 +47,6 @@ def app_(request):
app.test_client_class = TestClient
yield app
ctx.pop()
@pytest.fixture(scope='function')
def service_one(api_user_active):