mirror of https://github.com/MISP/misp-modules
fix: Avoiding empty config error on passivetotal module
parent
8135a3ceec
commit
2b592ce267
|
@ -269,7 +269,7 @@ class TestExpansions(unittest.TestCase):
|
||||||
|
|
||||||
def test_passivetotal(self):
|
def test_passivetotal(self):
|
||||||
module_name = "passivetotal"
|
module_name = "passivetotal"
|
||||||
query = {"module": module_name, "ip-src": "149.13.33.14"}
|
query = {"module": module_name, "ip-src": "149.13.33.14", "config": {}}
|
||||||
if module_name in self.configs:
|
if module_name in self.configs:
|
||||||
query["config"] = self.configs[module_name]
|
query["config"] = self.configs[module_name]
|
||||||
response = self.misp_modules_post(query)
|
response = self.misp_modules_post(query)
|
||||||
|
|
Loading…
Reference in New Issue