fix: Avoiding empty config error on passivetotal module

pull/603/head
chrisr3d 2019-11-01 16:59:58 +01:00
parent 8135a3ceec
commit 2b592ce267
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -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)