From 8010a1b7f98d5c2bc60a3ab0d0bc7b39ca825b3b Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 10 Sep 2025 12:25:19 -0700 Subject: [PATCH] fuzz --- tests/app/notifications/test_rest.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/app/notifications/test_rest.py b/tests/app/notifications/test_rest.py index c90c6e36c..eac2d0457 100644 --- a/tests/app/notifications/test_rest.py +++ b/tests/app/notifications/test_rest.py @@ -37,18 +37,14 @@ def test_fuzz_send_email_notification( def inner(email_address, personalisation, reference): template_id = str(sample_template.id) - auth_header = { - "Authorization": "ApiKey-v1 {}".format(sample_service.api_keys[0].secret) - } + payload = { "template_id": template_id, "email_address": email_address, "personalisation": personalisation, "reference": reference, } - response = client.post( - "/v2/notifications/email", json=payload, headers=auth_header - ) + response = client.post("/notifications/email", json=payload) assert response.status_code in ( 201, 400,