SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
tests: update module tests
Brendan Coles7938feddb664
diff --git a/test/unit/modules/test_sfp_abuseipdb.py b/test/unit/modules/test_sfp_abuseipdb.pyindex 450555ef..3a89e2f7 100644--- a/test/unit/modules/test_sfp_abuseipdb.py+++ b/test/unit/modules/test_sfp_abuseipdb.py@@ -54,8 +54,7 @@ class TestModuleabuseipdb(unittest.TestCase):module = sfp_abuseipdb()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -78,3 +77,4 @@ class TestModuleabuseipdb(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_apility.py b/test/unit/modules/test_sfp_apility.pyindex b5d8f860..6d46e72d 100644--- a/test/unit/modules/test_sfp_apility.py+++ b/test/unit/modules/test_sfp_apility.py@@ -54,7 +54,7 @@ class TestModuleapility(unittest.TestCase):module = sfp_apility()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleapility(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_badpackets.py b/test/unit/modules/test_sfp_badpackets.pyindex 398bc08a..4718b2a2 100644--- a/test/unit/modules/test_sfp_badpackets.py+++ b/test/unit/modules/test_sfp_badpackets.py@@ -54,7 +54,7 @@ class TestModulebadpackets(unittest.TestCase):module = sfp_badpackets()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""diff --git a/test/unit/modules/test_sfp_binaryedge.py b/test/unit/modules/test_sfp_binaryedge.pyindex 8ef0e37c..b86022d3 100644--- a/test/unit/modules/test_sfp_binaryedge.py+++ b/test/unit/modules/test_sfp_binaryedge.py@@ -54,7 +54,7 @@ class TestModulebinaryedge(unittest.TestCase):module = sfp_binaryedge()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulebinaryedge(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_bingsearch.py b/test/unit/modules/test_sfp_bingsearch.pyindex f021a856..d82a7a98 100644--- a/test/unit/modules/test_sfp_bingsearch.py+++ b/test/unit/modules/test_sfp_bingsearch.py@@ -54,7 +54,7 @@ class TestModulebingsearch(unittest.TestCase):module = sfp_bingsearch()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulebingsearch(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_bitcoinabuse.py b/test/unit/modules/test_sfp_bitcoinabuse.pyindex ab118643..702fbe31 100644--- a/test/unit/modules/test_sfp_bitcoinabuse.py+++ b/test/unit/modules/test_sfp_bitcoinabuse.py@@ -54,7 +54,7 @@ class TestModuleBitcoinAbuse(unittest.TestCase):module = sfp_bitcoinabuse()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleBitcoinAbuse(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_builtwith.py b/test/unit/modules/test_sfp_builtwith.pyindex 3911b14e..a8825e53 100644--- a/test/unit/modules/test_sfp_builtwith.py+++ b/test/unit/modules/test_sfp_builtwith.py@@ -54,7 +54,7 @@ class TestModulebuiltwith(unittest.TestCase):module = sfp_builtwith()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulebuiltwith(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_c99.py b/test/unit/modules/test_sfp_c99.pyindex a18a35b5..b5a5c440 100644--- a/test/unit/modules/test_sfp_c99.py+++ b/test/unit/modules/test_sfp_c99.py@@ -48,7 +48,7 @@ class TestModuleC99(unittest.TestCase):module = sfp_c99()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):sf = SpiderFoot(self.default_options)module = sfp_c99()@@ -68,3 +68,4 @@ class TestModuleC99(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_callername.py b/test/unit/modules/test_sfp_callername.pyindex dcfecefc..31c08157 100644--- a/test/unit/modules/test_sfp_callername.py+++ b/test/unit/modules/test_sfp_callername.py@@ -55,7 +55,6 @@ class TestModulecallername(unittest.TestCase):module = sfp_callername()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")def test_handleEvent(self):"""Test handleEvent(self, event)diff --git a/test/unit/modules/test_sfp_censys.py b/test/unit/modules/test_sfp_censys.pyindex 96453092..bd475e02 100644--- a/test/unit/modules/test_sfp_censys.py+++ b/test/unit/modules/test_sfp_censys.py@@ -55,8 +55,7 @@ class TestModulecensys(unittest.TestCase):module = sfp_censys()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -79,3 +78,4 @@ class TestModulecensys(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_cinsscore.py b/test/unit/modules/test_sfp_cinsscore.pyindex b69cac88..7bd51756 100644--- a/test/unit/modules/test_sfp_cinsscore.py+++ b/test/unit/modules/test_sfp_cinsscore.py@@ -33,7 +33,6 @@ class TestModulecinsscore(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_cinsscore()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_circllu.py b/test/unit/modules/test_sfp_circllu.pyindex a132b2cd..2748de12 100644--- a/test/unit/modules/test_sfp_circllu.py+++ b/test/unit/modules/test_sfp_circllu.py@@ -55,8 +55,7 @@ class TestModulecircllu(unittest.TestCase):module = sfp_circllu()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -79,3 +78,4 @@ class TestModulecircllu(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_citadel.py b/test/unit/modules/test_sfp_citadel.pyindex 517f02fe..f33657b8 100644--- a/test/unit/modules/test_sfp_citadel.py+++ b/test/unit/modules/test_sfp_citadel.py@@ -33,7 +33,6 @@ class TestModulecitadel(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_citadel()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_cleanbrowsing.py b/test/unit/modules/test_sfp_cleanbrowsing.pyindex 3459f769..be86787e 100644--- a/test/unit/modules/test_sfp_cleanbrowsing.py+++ b/test/unit/modules/test_sfp_cleanbrowsing.py@@ -33,7 +33,6 @@ class TestModulecleanbrowsing(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_cleanbrowsing()self.assertEqual(len(module.opts), len(module.optdescs))@@ -55,7 +54,6 @@ class TestModulecleanbrowsing(unittest.TestCase):module = sfp_cleanbrowsing()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")def test_handleEvent(self):"""Test handleEvent(self, event)diff --git a/test/unit/modules/test_sfp_cleantalk.py b/test/unit/modules/test_sfp_cleantalk.pyindex dc0973d0..c24f8650 100644--- a/test/unit/modules/test_sfp_cleantalk.py+++ b/test/unit/modules/test_sfp_cleantalk.py@@ -33,7 +33,6 @@ class TestModulecleantalk(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_cleantalk()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_clearbit.py b/test/unit/modules/test_sfp_clearbit.pyindex bc9e328f..e4355656 100644--- a/test/unit/modules/test_sfp_clearbit.py+++ b/test/unit/modules/test_sfp_clearbit.py@@ -33,7 +33,6 @@ class TestModuleclearbit(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_clearbit()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_cloudflaredns.py b/test/unit/modules/test_sfp_cloudflaredns.pyindex 050810f2..39193c60 100644--- a/test/unit/modules/test_sfp_cloudflaredns.py+++ b/test/unit/modules/test_sfp_cloudflaredns.py@@ -33,7 +33,6 @@ class TestModulecloudflaredns(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_cloudflaredns()self.assertEqual(len(module.opts), len(module.optdescs))@@ -55,7 +54,6 @@ class TestModulecloudflaredns(unittest.TestCase):module = sfp_cloudflaredns()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")def test_handleEvent(self):"""Test handleEvent(self, event)diff --git a/test/unit/modules/test_sfp_coinblocker.py b/test/unit/modules/test_sfp_coinblocker.pyindex 3ef92f9d..ea9717fb 100644--- a/test/unit/modules/test_sfp_coinblocker.py+++ b/test/unit/modules/test_sfp_coinblocker.py@@ -33,7 +33,6 @@ class TestModulecoinblocker(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_coinblocker()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_commoncrawl.py b/test/unit/modules/test_sfp_commoncrawl.pyindex 08daeb77..197acda8 100644--- a/test/unit/modules/test_sfp_commoncrawl.py+++ b/test/unit/modules/test_sfp_commoncrawl.py@@ -33,7 +33,6 @@ class TestModulecommoncrawl(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_commoncrawl()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_comodo.py b/test/unit/modules/test_sfp_comodo.pyindex f3989847..b657dcf0 100644--- a/test/unit/modules/test_sfp_comodo.py+++ b/test/unit/modules/test_sfp_comodo.py@@ -33,7 +33,6 @@ class TestModulecomodo(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_comodo()self.assertEqual(len(module.opts), len(module.optdescs))@@ -55,7 +54,6 @@ class TestModulecomodo(unittest.TestCase):module = sfp_comodo()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")def test_handleEvent(self):"""Test handleEvent(self, event)diff --git a/test/unit/modules/test_sfp_crossref.py b/test/unit/modules/test_sfp_crossref.pyindex a369a77d..233a71c9 100644--- a/test/unit/modules/test_sfp_crossref.py+++ b/test/unit/modules/test_sfp_crossref.py@@ -33,7 +33,6 @@ class TestModulecrossref(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_crossref()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_crt.py b/test/unit/modules/test_sfp_crt.pyindex 13705749..f179222d 100644--- a/test/unit/modules/test_sfp_crt.py+++ b/test/unit/modules/test_sfp_crt.py@@ -33,7 +33,6 @@ class TestModulecrt(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_crt()self.assertEqual(len(module.opts), len(module.optdescs))diff --git a/test/unit/modules/test_sfp_emailrep.py b/test/unit/modules/test_sfp_emailrep.pyindex 578b0863..07a5ba55 100644--- a/test/unit/modules/test_sfp_emailrep.py+++ b/test/unit/modules/test_sfp_emailrep.py@@ -33,7 +33,6 @@ class TestModuleemailrep(unittest.TestCase):'__logstdout': False}- @unittest.skip("todo")def test_opts(self):module = sfp_emailrep()self.assertEqual(len(module.opts), len(module.optdescs))@@ -56,7 +55,7 @@ class TestModuleemailrep(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)@unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""diff --git a/test/unit/modules/test_sfp_fullcontact.py b/test/unit/modules/test_sfp_fullcontact.pyindex 5ceaf66b..18938c15 100644--- a/test/unit/modules/test_sfp_fullcontact.py+++ b/test/unit/modules/test_sfp_fullcontact.py@@ -54,7 +54,7 @@ class TestModulefullcontact(unittest.TestCase):module = sfp_fullcontact()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulefullcontact(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_googlemaps.py b/test/unit/modules/test_sfp_googlemaps.pyindex bbba1b2c..af73cad4 100644--- a/test/unit/modules/test_sfp_googlemaps.py+++ b/test/unit/modules/test_sfp_googlemaps.py@@ -54,7 +54,7 @@ class TestModulegooglemaps(unittest.TestCase):module = sfp_googlemaps()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulegooglemaps(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_googlesearch.py b/test/unit/modules/test_sfp_googlesearch.pyindex b6d58462..046163f2 100644--- a/test/unit/modules/test_sfp_googlesearch.py+++ b/test/unit/modules/test_sfp_googlesearch.py@@ -54,7 +54,7 @@ class TestModulegooglesearch(unittest.TestCase):module = sfp_googlesearch()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulegooglesearch(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_greynoise.py b/test/unit/modules/test_sfp_greynoise.pyindex 4b34da7b..fc1f258b 100644--- a/test/unit/modules/test_sfp_greynoise.py+++ b/test/unit/modules/test_sfp_greynoise.py@@ -54,7 +54,7 @@ class TestModulegreynoise(unittest.TestCase):module = sfp_greynoise()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulegreynoise(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_hostio.py b/test/unit/modules/test_sfp_hostio.pyindex 1375803e..c61c365f 100644--- a/test/unit/modules/test_sfp_hostio.py+++ b/test/unit/modules/test_sfp_hostio.py@@ -55,8 +55,7 @@ class TestModulehostio(unittest.TestCase):module = sfp_hostio()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -66,7 +65,7 @@ class TestModulehostio(unittest.TestCase):module.setup(sf, dict())target_value = 'example target value'- target_type = 'DOMAIN_NAME'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)@@ -79,3 +78,4 @@ class TestModulehostio(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_hunter.py b/test/unit/modules/test_sfp_hunter.pyindex 8648ee95..9b7ca90c 100644--- a/test/unit/modules/test_sfp_hunter.py+++ b/test/unit/modules/test_sfp_hunter.py@@ -54,7 +54,7 @@ class TestModulehunter(unittest.TestCase):module = sfp_hunter()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulehunter(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_intelx.py b/test/unit/modules/test_sfp_intelx.pyindex 4108385b..482216b4 100644--- a/test/unit/modules/test_sfp_intelx.py+++ b/test/unit/modules/test_sfp_intelx.py@@ -54,7 +54,7 @@ class TestModuleintelx(unittest.TestCase):module = sfp_intelx()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleintelx(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_ipstack.py b/test/unit/modules/test_sfp_ipstack.pyindex 9ab89c3d..fa19d4c6 100644--- a/test/unit/modules/test_sfp_ipstack.py+++ b/test/unit/modules/test_sfp_ipstack.py@@ -54,7 +54,7 @@ class TestModuleipstack(unittest.TestCase):module = sfp_ipstack()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleipstack(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_jsonwhoiscom.py b/test/unit/modules/test_sfp_jsonwhoiscom.pyindex 9d576a2b..4e54dda7 100644--- a/test/unit/modules/test_sfp_jsonwhoiscom.py+++ b/test/unit/modules/test_sfp_jsonwhoiscom.py@@ -54,7 +54,7 @@ class TestModulejsonwhoiscom(unittest.TestCase):module = sfp_jsonwhoiscom()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""diff --git a/test/unit/modules/test_sfp_malwarepatrol.py b/test/unit/modules/test_sfp_malwarepatrol.pyindex fcce4e4d..70c44054 100644--- a/test/unit/modules/test_sfp_malwarepatrol.py+++ b/test/unit/modules/test_sfp_malwarepatrol.py@@ -54,7 +54,7 @@ class TestModulemalwarepatrol(unittest.TestCase):module = sfp_malwarepatrol()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""diff --git a/test/unit/modules/test_sfp_neutrinoapi.py b/test/unit/modules/test_sfp_neutrinoapi.pyindex c2691654..b311223d 100644--- a/test/unit/modules/test_sfp_neutrinoapi.py+++ b/test/unit/modules/test_sfp_neutrinoapi.py@@ -54,7 +54,7 @@ class TestModuleneutrinoapi(unittest.TestCase):module = sfp_neutrinoapi()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleneutrinoapi(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_onyphe.py b/test/unit/modules/test_sfp_onyphe.pyindex 21aadfc6..8f64001f 100644--- a/test/unit/modules/test_sfp_onyphe.py+++ b/test/unit/modules/test_sfp_onyphe.py@@ -54,7 +54,7 @@ class TestModuleOnyphe(unittest.TestCase):module = sfp_onyphe()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleOnyphe(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_riskiq.py b/test/unit/modules/test_sfp_riskiq.pyindex fd24590e..38ada9f8 100644--- a/test/unit/modules/test_sfp_riskiq.py+++ b/test/unit/modules/test_sfp_riskiq.py@@ -54,7 +54,7 @@ class TestModuleriskiq(unittest.TestCase):module = sfp_riskiq()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleriskiq(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_shodan.py b/test/unit/modules/test_sfp_shodan.pyindex b29f7826..90d93e19 100644--- a/test/unit/modules/test_sfp_shodan.py+++ b/test/unit/modules/test_sfp_shodan.py@@ -54,7 +54,7 @@ class TestModuleshodan(unittest.TestCase):module = sfp_shodan()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleshodan(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_snov.py b/test/unit/modules/test_sfp_snov.pyindex 3e1d50b3..7690c7d0 100644--- a/test/unit/modules/test_sfp_snov.py+++ b/test/unit/modules/test_sfp_snov.py@@ -54,7 +54,7 @@ class TestModulesnov(unittest.TestCase):module = sfp_snov()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulesnov(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_spur.py b/test/unit/modules/test_sfp_spur.pyindex 9d57a29e..a9805e1f 100644--- a/test/unit/modules/test_sfp_spur.py+++ b/test/unit/modules/test_sfp_spur.py@@ -54,7 +54,7 @@ class TestModulespur(unittest.TestCase):module = sfp_spur()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulespur(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_twilio.py b/test/unit/modules/test_sfp_twilio.pyindex 28c56a2c..bcc5b4e8 100644--- a/test/unit/modules/test_sfp_twilio.py+++ b/test/unit/modules/test_sfp_twilio.py@@ -54,7 +54,7 @@ class TestModuletwilio(unittest.TestCase):module = sfp_twilio()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""diff --git a/test/unit/modules/test_sfp_viewdns.py b/test/unit/modules/test_sfp_viewdns.pyindex 2a07d23b..70fff282 100644--- a/test/unit/modules/test_sfp_viewdns.py+++ b/test/unit/modules/test_sfp_viewdns.py@@ -54,7 +54,7 @@ class TestModuleviewdns(unittest.TestCase):module = sfp_viewdns()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleviewdns(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_virustotal.py b/test/unit/modules/test_sfp_virustotal.pyindex c6e1b573..2c35ef5d 100644--- a/test/unit/modules/test_sfp_virustotal.py+++ b/test/unit/modules/test_sfp_virustotal.py@@ -54,7 +54,7 @@ class TestModulevirustotal(unittest.TestCase):module = sfp_virustotal()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulevirustotal(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_whatcms.py b/test/unit/modules/test_sfp_whatcms.pyindex a23c4975..762c0f4f 100644--- a/test/unit/modules/test_sfp_whatcms.py+++ b/test/unit/modules/test_sfp_whatcms.py@@ -54,7 +54,7 @@ class TestModuleWhatCMS(unittest.TestCase):module = sfp_whatcms()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModuleWhatCMS(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_whoisology.py b/test/unit/modules/test_sfp_whoisology.pyindex 59a0b5b6..42b997d9 100644--- a/test/unit/modules/test_sfp_whoisology.py+++ b/test/unit/modules/test_sfp_whoisology.py@@ -54,7 +54,7 @@ class TestModulewhoisology(unittest.TestCase):module = sfp_whoisology()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulewhoisology(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_wigle.py b/test/unit/modules/test_sfp_wigle.pyindex a14fc34e..6699f51e 100644--- a/test/unit/modules/test_sfp_wigle.py+++ b/test/unit/modules/test_sfp_wigle.py@@ -54,7 +54,7 @@ class TestModulewigle(unittest.TestCase):module = sfp_wigle()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""diff --git a/test/unit/modules/test_sfp_xforce.py b/test/unit/modules/test_sfp_xforce.pyindex afb47ea6..0722b58c 100644--- a/test/unit/modules/test_sfp_xforce.py+++ b/test/unit/modules/test_sfp_xforce.py@@ -54,7 +54,7 @@ class TestModulexforce(unittest.TestCase):module = sfp_xforce()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -77,3 +77,4 @@ class TestModulexforce(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/test_sf.py b/test/unit/test_sf.pyindex 7a11ba9d..c40ee132 100644--- a/test/unit/test_sf.py+++ b/test/unit/test_sf.py@@ -120,7 +120,3 @@ class TestSf(unittest.TestCase):]for output in expected_output:self.assertIn(bytes(output, 'utf-8'), out)---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfoot.py b/test/unit/test_spiderfoot.pyindex 9f3fcc7e..8a526e6a 100644--- a/test/unit/test_spiderfoot.py+++ b/test/unit/test_spiderfoot.py@@ -1514,7 +1514,3 @@ class TestSpiderFoot(unittest.TestCase):sf.bingIterate(None, None)self.assertEqual('TBD', 'TBD')---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfootcli.py b/test/unit/test_spiderfootcli.pyindex faf527da..6efe2d01 100644--- a/test/unit/test_spiderfootcli.py+++ b/test/unit/test_spiderfootcli.py@@ -567,7 +567,3 @@ class TestSpiderFootCli(unittest.TestCase):sfcli = SpiderFootCli()do_eof = sfcli.do_EOF(None)self.assertTrue(do_eof)---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfootdb.py b/test/unit/test_spiderfootdb.pyindex 1ac1b63d..90da4cf8 100644--- a/test/unit/test_spiderfootdb.py+++ b/test/unit/test_spiderfootdb.py@@ -1268,7 +1268,3 @@ class TestSpiderFootDb(unittest.TestCase):with self.subTest(invalid_type=invalid_type):with self.assertRaises(TypeError):sfdb.scanElementChildrenAll(instance_id, invalid_type)---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfootevent.py b/test/unit/test_spiderfootevent.pyindex 2654ad61..24cbe23b 100644--- a/test/unit/test_spiderfootevent.py+++ b/test/unit/test_spiderfootevent.py@@ -349,7 +349,3 @@ class TestSpiderFootEvent(unittest.TestCase):evt_hash = evt.getHash()self.assertIsInstance(evt_hash, str)---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfootplugin.py b/test/unit/test_spiderfootplugin.pyindex 130267c4..27587887 100644--- a/test/unit/test_spiderfootplugin.py+++ b/test/unit/test_spiderfootplugin.py@@ -305,7 +305,3 @@ class TestSpiderFootPlugin(unittest.TestCase):sfp = SpiderFootPlugin()sfp.start()---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfootscanner.py b/test/unit/test_spiderfootscanner.pyindex 605b41e1..bbc45988 100644--- a/test/unit/test_spiderfootscanner.py+++ b/test/unit/test_spiderfootscanner.py@@ -215,7 +215,3 @@ class TestSpiderFootScanner(unittest.TestCase):status = sfscan.statusself.assertIsInstance(status, str)---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfoottarget.py b/test/unit/test_spiderfoottarget.pyindex 3d879dff..4e112075 100644--- a/test/unit/test_spiderfoottarget.py+++ b/test/unit/test_spiderfoottarget.py@@ -327,7 +327,3 @@ class TestSpiderFootTarget(unittest.TestCase):matches = target.matches("")self.assertFalse(matches)---if __name__ == '__main__':- unittest.main()diff --git a/test/unit/test_spiderfootwebui.py b/test/unit/test_spiderfootwebui.pyindex 13df2ebf..8ad75d46 100644--- a/test/unit/test_spiderfootwebui.py+++ b/test/unit/test_spiderfootwebui.py@@ -803,7 +803,3 @@ class TestSpiderFootWebUi(unittest.TestCase):sfwebui = SpiderFootWebUi(self.default_web_options, opts)scan_element_type_discovery = sfwebui.scanelementtypediscovery(None, None)self.assertIsInstance(scan_element_type_discovery, str)---if __name__ == '__main__':- unittest.main()