From 8d9e351e474a76879918edae57f24ea9ade5eac7 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 11 Sep 2025 10:09:47 -0700 Subject: [PATCH] more session scope client fuzz --- tests/app/conftest.py | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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