From 612cb60f99d9869a61964182f285143bf15542aa Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 10 Sep 2025 12:34:34 -0700 Subject: [PATCH] fuzz --- tests/app/notifications/test_rest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/app/notifications/test_rest.py b/tests/app/notifications/test_rest.py index eac2d0457..7357103e5 100644 --- a/tests/app/notifications/test_rest.py +++ b/tests/app/notifications/test_rest.py @@ -24,6 +24,7 @@ def test_fuzz_send_email_notification( sample_service, sample_template, notify_db_session, + sample_email_notification, ): @given( st.emails(), @@ -44,7 +45,12 @@ def test_fuzz_send_email_notification( "personalisation": personalisation, "reference": reference, } - response = client.post("/notifications/email", json=payload) + auth_header = create_service_authorization_header( + service_id=sample_email_notification.service_id + ) + response = client.post( + "/notifications/email", json=payload, headers=[auth_header] + ) assert response.status_code in ( 201, 400,