Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Tests: test_sfp_customfeed: Add handleEvent test for missing feed URL option (#1439)

bcoles63a90d6acc6e
diff --git a/test/unit/modules/test_sfp_customfeed.py b/test/unit/modules/test_sfp_customfeed.py
index 470181bd..928f78c5 100644
--- a/test/unit/modules/test_sfp_customfeed.py
+++ b/test/unit/modules/test_sfp_customfeed.py
@@ -34,8 +34,7 @@ class TestModulecustomfeed(unittest.TestCase):
module = sfp_customfeed()
self.assertIsInstance(module.producedEvents(), list)
- @unittest.skip("todo")
- def test_handleEvent(self):
+ def test_handleEvent_no_feed_url_should_set_errorState(self):
"""
Test handleEvent(self, event)
"""
@@ -58,3 +57,4 @@ class TestModulecustomfeed(unittest.TestCase):
result = module.handleEvent(evt)
self.assertIsNone(result)
+ self.assertTrue(module.errorState)