SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Tests: modules: skip invalid tests (#1242)
bcolese62b322824e3
diff --git a/test/unit/modules/test_sfp_dnsdumpster.py b/test/unit/modules/test_sfp_dnsdumpster.pyindex 912e87a8..f0660c92 100644--- a/test/unit/modules/test_sfp_dnsdumpster.py+++ b/test/unit/modules/test_sfp_dnsdumpster.py@@ -1,4 +1,5 @@# test_sfp_dnsdumpster.py+import pytestimport unittestfrom modules.sfp_dnsdumpster import sfp_dnsdumpster@@ -6,33 +7,12 @@ from sflib import SpiderFootfrom spiderfoot import SpiderFootEvent, SpiderFootTargetclass TestModulednsdumpster(unittest.TestCase):"""Test modules.sfp_dnsdumpster"""- default_options = {- '_debug': False, # Debug- '__logging': True, # Logging in general- '__outputfilter': None, # Event types to filter from modules' output- '_useragent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0', # User-Agent to use for HTTP requests- '_dnsserver': '', # Override the default resolver- '_fetchtimeout': 5, # number of seconds before giving up on a fetch- '_internettlds': 'https://publicsuffix.org/list/effective_tld_names.dat',- '_internettlds_cache': 72,- '_genericusers': "abuse,admin,billing,compliance,devnull,dns,ftp,hostmaster,inoc,ispfeedback,ispsupport,list-request,list,maildaemon,marketing,noc,no-reply,noreply,null,peering,peering-notify,peering-request,phish,phishing,postmaster,privacy,registrar,registry,root,routing-registry,rr,sales,security,spam,support,sysadmin,tech,undisclosed-recipients,unsubscribe,usenet,uucp,webmaster,www",- '__version__': '3.3',- '__database': 'spiderfoot.test.db', # note: test database file- '__modules__': None, # List of modules. Will be set after start-up.- '_socks1type': '',- '_socks2addr': '',- '_socks3port': '',- '_socks4user': '',- '_socks5pwd': '',- '_torctlport': 9051,- '__logstdout': False- }-def test_opts(self):module = sfp_dnsdumpster()self.assertEqual(len(module.opts), len(module.optdescs))@@ -54,6 +34,7 @@ class TestModulednsdumpster(unittest.TestCase):module = sfp_dnsdumpster()self.assertIsInstance(module.producedEvents(), list)+ @unittest.skip("todo")def test_handleEvent(self):"""Test handleEvent(self, event)diff --git a/test/unit/modules/test_sfp_sublist3r.py b/test/unit/modules/test_sfp_sublist3r.pyindex 7b7ccb3f..288828b0 100644--- a/test/unit/modules/test_sfp_sublist3r.py+++ b/test/unit/modules/test_sfp_sublist3r.py@@ -1,4 +1,5 @@# test_sfp_sublist3r.py+import pytestimport unittestfrom modules.sfp_sublist3r import sfp_sublist3r@@ -6,33 +7,12 @@ from sflib import SpiderFootfrom spiderfoot import SpiderFootEvent, SpiderFootTargetclass TestModulesublist3r(unittest.TestCase):"""Test modules.sfp_sublist3r"""- default_options = {- '_debug': False, # Debug- '__logging': True, # Logging in general- '__outputfilter': None, # Event types to filter from modules' output- '_useragent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0', # User-Agent to use for HTTP requests- '_dnsserver': '', # Override the default resolver- '_fetchtimeout': 5, # number of seconds before giving up on a fetch- '_internettlds': 'https://publicsuffix.org/list/effective_tld_names.dat',- '_internettlds_cache': 72,- '_genericusers': "abuse,admin,billing,compliance,devnull,dns,ftp,hostmaster,inoc,ispfeedback,ispsupport,list-request,list,maildaemon,marketing,noc,no-reply,noreply,null,peering,peering-notify,peering-request,phish,phishing,postmaster,privacy,registrar,registry,root,routing-registry,rr,sales,security,spam,support,sysadmin,tech,undisclosed-recipients,unsubscribe,usenet,uucp,webmaster,www",- '__version__': '3.3',- '__database': 'spiderfoot.test.db', # note: test database file- '__modules__': None, # List of modules. Will be set after start-up.- '_socks1type': '',- '_socks2addr': '',- '_socks3port': '',- '_socks4user': '',- '_socks5pwd': '',- '_torctlport': 9051,- '__logstdout': False- }-def test_opts(self):module = sfp_sublist3r()self.assertEqual(len(module.opts), len(module.optdescs))@@ -54,6 +34,7 @@ class TestModulesublist3r(unittest.TestCase):module = sfp_sublist3r()self.assertIsInstance(module.producedEvents(), list)+ @unittest.skip("todo")def test_handleEvent(self):"""Test handleEvent(self, event)