Skip to content

Commit

Permalink
more test fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Jul 28, 2024
1 parent c9ee0e9 commit b855d70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bbot/test/test_step_1/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ async def test_url_extension_handling(bbot_scanner):
httpx_event = scan.make_event("https://evilcorp.com/a.js", "URL", tags=["status-200"], parent=scan.root_event)
assert "blacklisted" not in bad_event.tags
assert "httpx-only" not in httpx_event.tags
result = await scan.ingress_module.handle_event(good_event, {})
result = await scan.ingress_module.handle_event(good_event)
assert result == None
result, reason = await scan.ingress_module.handle_event(bad_event, {})
result, reason = await scan.ingress_module.handle_event(bad_event)
assert result == False
assert reason == "event is blacklisted"
assert "blacklisted" in bad_event.tags
result = await scan.ingress_module.handle_event(httpx_event, {})
result = await scan.ingress_module.handle_event(httpx_event)
assert result == None
assert "httpx-only" in httpx_event.tags

Expand Down

0 comments on commit b855d70

Please sign in to comment.