mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 07:42:20 -05:00
more session scope client fuzz
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user