Skip to content

Commit

Permalink
better scope tagging for events
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Nov 3, 2023
1 parent 3543845 commit 1736f46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bbot/test/test_step_1/test_manager_scope_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ async def test_manager_scope_tagging(bbot_config, bbot_scanner):

e2 = scan.make_event("dev.test.notreal", source=e1, tags=["affiliate"])
assert e2.scope_distance == 2
assert "affiliate" in e2.tags
assert "in-scope" not in e2.tags
distance_tags = [t for t in e2.tags if t.startswith("distance-")]
assert len(distance_tags) == 1
Expand All @@ -812,5 +813,6 @@ async def test_manager_scope_tagging(bbot_config, bbot_scanner):
log.critical(e2)
assert e2.scope_distance == 0
assert "in-scope" in e2.tags
assert "affiliate" not in e2.tags
distance_tags = [t for t in e2.tags if t.startswith("distance-")]
assert not distance_tags

0 comments on commit 1736f46

Please sign in to comment.