From 94a65c578a641751d9941a58d44b91b0cb7f554f Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 9 Mar 2022 12:38:56 +0100 Subject: [PATCH] fix: [tests] check if the version is a substring as PyMISP might contain sub version --- 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 ca19d56..333e113 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -2033,7 +2033,7 @@ class TestComprehensive(unittest.TestCase): self.assertIn(typ, remote_types) def test_versions(self): - self.assertEqual(self.user_misp_connector.version, self.user_misp_connector.pymisp_version_master) + self.assertIn(self.user_misp_connector.version, self.user_misp_connector.pymisp_version_master) self.assertEqual(self.user_misp_connector.misp_instance_version['version'], self.user_misp_connector.misp_instance_version_master['version'])