Skip to content

Commit

Permalink
bro, do you even unit test?
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed Aug 16, 2024
1 parent 4df4d4a commit 672c790
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bbot/test/test_step_2/module_tests/test_module_excavate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,5 +1008,9 @@ def check(self, module_test, events):
), f"Failed to emmit serialized event got {finding_events}"
assert finding_events[0].data["path"] == str(file), "File path not included in finding event"
url_events = [e.data for e in events if e.type == "URL_UNVERIFIED"]
assert "https://www.test.notreal/about" in url_events, f"URL extracted from unstructured text is incorrect, got {url_events}"
assert "/donot_detect.js" not in url_events, f"URL extracted from unstructured text is incorrect, got {url_events}"
assert (
"https://www.test.notreal/about" in url_events
), f"URL extracted from unstructured text is incorrect, got {url_events}"
assert (
"/donot_detect.js" not in url_events
), f"URL extracted from unstructured text is incorrect, got {url_events}"

0 comments on commit 672c790

Please sign in to comment.