more session scope client fuzz

This commit is contained in:
Kenneth Kehl
2025-09-11 09:45:05 -07:00
parent 80c772fc9d
commit a3aabca962
2 changed files with 2 additions and 6 deletions

View File

@@ -16,9 +16,7 @@ from tests import create_service_authorization_header
from tests.app.db import create_api_key, create_notification
@pytest.mark.usefixtures(
"client", "sample_service", "sample_template", "notify_db_session"
)
@pytest.mark.usefixtures("client", "sample_template")
@settings(max_examples=10)
@given(
fuzzed_email_address=st.emails(),
@@ -31,9 +29,7 @@ from tests.app.db import create_api_key, create_notification
)
def test_fuzz_send_email_notification(
client,
sample_service,
sample_template,
notify_db_session,
sample_email_notification,
fuzzed_email_address,
fuzzed_personalisation,

View File

@@ -38,7 +38,7 @@ def notify_api(notify_app):
ctx.pop()
@pytest.fixture(scope="function")
@pytest.fixture(scope="session")
def client(notify_api):
with notify_api.test_request_context(), notify_api.test_client() as client:
yield client