diff --git a/tests/app/conftest.py b/tests/app/conftest.py index 1f9904612..2cda32c5d 100644 --- a/tests/app/conftest.py +++ b/tests/app/conftest.py @@ -252,7 +252,7 @@ def _sample_service_full_permissions(notify_db_session): return service -@pytest.fixture(scope="function") +@pytest.fixture(scope="session") def sample_template(sample_user): service = create_service( service_permissions=[ServicePermissionType.EMAIL, ServicePermissionType.SMS], diff --git a/tests/conftest.py b/tests/conftest.py index 6a596e233..95de4a893 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -83,7 +83,7 @@ def sms_providers(_notify_db): # get_provider_details_by_identifier("sns").priority = 100 -@pytest.fixture(scope="function") +@pytest.fixture(scope="session") def notify_db_session(_notify_db, sms_providers): """ This fixture clears down all non static data after your test run. It yields the sqlalchemy session variable