This commit is contained in:
Kenneth Kehl
2025-09-10 12:25:19 -07:00
parent a66121b704
commit 8010a1b7f9

View File

@@ -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,