Skip to content

Commit 9de1ce2

Browse files
committed
chore: Add comments
1 parent 191757f commit 9de1ce2

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

tests/fuzz/fuzz_csv_import_flow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def TestOneInput(data: bytes) -> None:
4141
try:
4242
client.contactslist_csvdata.create(id=list_id, data=fuzzed_csv_data)
4343
except (ValueError, TypeError):
44+
# Expected for malformed fuzz inputs; ignore and continue fuzzing.
4445
pass
4546

4647
# 2. Fuzz the Import Job Creation Payload
@@ -54,6 +55,7 @@ def TestOneInput(data: bytes) -> None:
5455
try:
5556
client.csvimport.create(data=import_data)
5657
except (ValueError, TypeError):
58+
# Expected for malformed fuzz inputs; ignore and continue fuzzing.
5759
pass
5860

5961
if __name__ == "__main__":

tests/fuzz/fuzz_differential_v3.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,16 @@ def TestOneInput(data: bytes) -> None:
6666
try:
6767
client_v3.send.create(data=payload_v3)
6868
success_v3 = True
69-
except EXPECTED_REJECTIONS:
70-
pass
69+
except EXPECTED_REJECTIONS as _exc:
70+
# Expected fuzzing-time validation rejection: keep success_v3 as False.
71+
_ = _exc
7172

7273
try:
7374
client_v31.send.create(data=payload_v31)
7475
success_v31 = True
75-
except EXPECTED_REJECTIONS:
76-
pass
76+
except EXPECTED_REJECTIONS as _exc:
77+
# Expected fuzzing-time validation rejection: keep success_v31 as False.
78+
_ = _exc
7779

7880
# 3. Differential Assertion
7981
if success_v3 != success_v31:

0 commit comments

Comments
 (0)