Skip to content

Commit

Permalink
fixed postman tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Jan 22, 2024
1 parent 4883687 commit e60f4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbot/test/test_step_2/module_tests/test_module_postman.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ async def setup_after_prep(self, module_test):

old_emit_event = module_test.module.emit_event

def new_emit_event(event_data, event_type, **kwargs):
async def new_emit_event(event_data, event_type, **kwargs):
if event_data.startswith("https://www.postman.com"):
event_data = event_data.replace("https://www.postman.com", "http://127.0.0.1:8888")
old_emit_event(event_data, event_type, **kwargs)
await old_emit_event(event_data, event_type, **kwargs)

module_test.monkeypatch.setattr(module_test.module, "emit_event", new_emit_event)
module_test.scan.helpers.dns.mock_dns({("asdf.blacklanternsecurity.com", "A"): "127.0.0.1"})
Expand Down

0 comments on commit e60f4b7

Please sign in to comment.