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