mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
first fuzz test
This commit is contained in:
@@ -153,9 +153,10 @@ def test_fuzz_upload_csv_batch_sms_handles_bad_and_good_input(rows, rows_data, c
|
|||||||
csv_content = output.getvalue()
|
csv_content = output.getvalue()
|
||||||
|
|
||||||
response = client.post(
|
response = client.post(
|
||||||
url_for("send_batch_sms_upload"),
|
url_for("main.send_messages"),
|
||||||
data={"csv_file": (io.BytesIO(csv_content.encode("utf-8")), "batch.csv")},
|
data={"upload": (io.BytesIO(csv_content.encode("utf-8")), "batch.csv")},
|
||||||
content_type="multipart/form-data",
|
content_type="multipart/form-data",
|
||||||
|
follow_redirects=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
|
|||||||
Reference in New Issue
Block a user