debug ugh

This commit is contained in:
Kenneth Kehl
2025-09-16 14:31:53 -07:00
parent 3510bca17a
commit cef8917614

View File

@@ -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"])