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,