From a8a7b70162093ae1339fc93c10c5337319ea7cd9 Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 3 Jul 2024 12:13:33 +0200 Subject: [PATCH] fix: [publish test] invalid path for the publishing outcome in the response --- tests/testlive_comprehensive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 5de5763..7cb58c0 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -868,7 +868,7 @@ class TestComprehensive(unittest.TestCase): bg_processing_state = self.admin_misp_connector.get_server_setting('MISP.background_jobs')['value'] self.admin_misp_connector.set_server_setting('MISP.background_processing', False, force=True) publish_result = self.admin_misp_connector.publish(second) - self.assertEqual(publish_result, True) + self.assertEqual(publish_result["success"], True) second = self.admin_misp_connector.get_event(second, pythonify=True) # check if the publishing succeeded self.assertEqual(second.published, True)