mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
debug ugh
This commit is contained in:
@@ -106,7 +106,7 @@ test_spreadsheet_files = glob(path.join("tests", "spreadsheet_files", "*"))
|
||||
test_non_spreadsheet_files = glob(path.join("tests", "non_spreadsheet_files", "*"))
|
||||
|
||||
|
||||
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
|
||||
@settings(max_examples=10, suppress_health_check=[HealthCheck.function_scoped_fixture])
|
||||
@given(
|
||||
rows=st.integers(min_value=1, max_value=10),
|
||||
rows_data=st.lists(
|
||||
@@ -145,6 +145,11 @@ def test_fuzz_upload_csv_batch_sms_handles_bad_and_good_input(
|
||||
)
|
||||
mock_s3_upload = mocker.patch("app.main.views.send.s3upload")
|
||||
|
||||
mocker.patch(
|
||||
"app.main.views.send.get_csv_metadata",
|
||||
return_value={"original_file_name": "fuzz.csv"},
|
||||
)
|
||||
|
||||
output = io.StringIO()
|
||||
writer = csv.writer(output)
|
||||
writer.writerow(["phone_number", "name", "favourite colour", "fruit"])
|
||||
|
||||
Reference in New Issue
Block a user