SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
tests: add check for module meta dict
Brendan Coles390a7b50d357
diff --git a/test/unit/test_spiderfoot_module_loading.py b/test/unit/test_spiderfoot_module_loading.pyindex 92840f23..c6551b1a 100644--- a/test/unit/test_spiderfoot_module_loading.py+++ b/test/unit/test_spiderfoot_module_loading.py@@ -58,6 +58,7 @@ class TestSpiderFootModuleLoading(unittest.TestCase):mod = __import__('modules.' + modName, globals(), locals(), [modName])sfModules[modName]['object'] = getattr(mod, modName)()sfModules[modName]['name'] = sfModules[modName]['object'].__doc__.split(":", 5)[0]+ sfModules[modName]['meta'] = sfModules[modName]['object'].metasfModules[modName]['cats'] = sfModules[modName]['object'].__doc__.split(":", 5)[1].split(",")sfModules[modName]['group'] = sfModules[modName]['object'].__doc__.split(":", 5)[2]sfModules[modName]['labels'] = sfModules[modName]['object'].__doc__.split(":", 5)[3].split(",")@@ -80,6 +81,7 @@ class TestSpiderFootModuleLoading(unittest.TestCase):self.assertTrue(m.get('object'))self.assertTrue(m.get('name'))+ self.assertTrue(m.get('meta'))self.assertTrue(m.get('cats'))# self.assertTrue(m.get('group'))self.assertTrue(m.get('labels'))diff --git a/test/unit/test_spiderfootwebui.py b/test/unit/test_spiderfootwebui.pyindex c1ad7c01..442ca1b9 100644--- a/test/unit/test_spiderfootwebui.py+++ b/test/unit/test_spiderfootwebui.py@@ -53,6 +53,7 @@ class TestSpiderFootWebUiRoutes(helper.CPWebCase):mod = __import__('modules.' + modName, globals(), locals(), [modName])sfModules[modName]['object'] = getattr(mod, modName)()sfModules[modName]['name'] = sfModules[modName]['object'].__doc__.split(":", 5)[0]+ sfModules[modName]['meta'] = sfModules[modName]['object'].metasfModules[modName]['cats'] = sfModules[modName]['object'].__doc__.split(":", 5)[1].split(",")sfModules[modName]['group'] = sfModules[modName]['object'].__doc__.split(":", 5)[2]sfModules[modName]['labels'] = sfModules[modName]['object'].__doc__.split(":", 5)[3].split(",")