From 06c262a61ed262c1946b8c7424ed8a9da9542a93 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 26 Aug 2024 10:15:17 -0400 Subject: [PATCH] switched scope test --> emails=False --- .../test_step_2/module_tests/test_module_securitytxt.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bbot/test/test_step_2/module_tests/test_module_securitytxt.py b/bbot/test/test_step_2/module_tests/test_module_securitytxt.py index 3d64a4eb6e..ed1443ea49 100644 --- a/bbot/test/test_step_2/module_tests/test_module_securitytxt.py +++ b/bbot/test/test_step_2/module_tests/test_module_securitytxt.py @@ -31,16 +31,14 @@ def check(self, module_test, events): assert not any(str(e.data) == "vdp@example.com" for e in events) -class TestSecurityTxtInScopeFalse(TestSecurityTxt): +class TestSecurityTxtEmailsFalse(TestSecurityTxt): config_overrides = { "scope": {"report_distance": 1}, - "modules": {"securitytxt": {"in_scope_only": False}}, + "modules": {"securitytxt": {"emails": False}}, } def check(self, module_test, events): - assert any( - e.type == "EMAIL_ADDRESS" and e.data == "vdp@example.com" for e in events - ), "Failed to detect email address" + assert not any(e.type == "EMAIL_ADDRESS" for e in events), "Detected email address when emails=False" assert any( e.type == "URL_UNVERIFIED" and e.data == "https://vdp.example.com/" for e in events ), "Failed to detect URL"