From 5301ddd1facbbf14cbfd805f9bcac38e5dbd1487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 2 Feb 2024 10:59:31 +0100 Subject: [PATCH] chg: Add even more debug for gha --- pymisp/abstract.py | 2 +- tests/testlive_comprehensive.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pymisp/abstract.py b/pymisp/abstract.py index 8ca7cae..068e1a5 100644 --- a/pymisp/abstract.py +++ b/pymisp/abstract.py @@ -46,7 +46,7 @@ class MISPFileCache: return data -class Distribution(IntEnum): +class Distribution(Enum): your_organisation_only = 0 this_community_only = 1 connected_communities = 2 diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index cb34dc7..67f6d2b 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -1702,11 +1702,10 @@ class TestComprehensive(unittest.TestCase): self.admin_misp_connector.delete_event(first) def test_add_event_with_attachment(self) -> None: - first = self.create_simple_event() + first_send = self.create_simple_event() try: - print(first) - first = self.user_misp_connector.add_event(first) - self.assertTrue(isinstance(first, MISPEvent), first) + first = self.user_misp_connector.add_event(first_send) + self.assertTrue(isinstance(first, MISPEvent), '\n'.join([first_send, first])) file_obj, bin_obj, sections = make_binary_objects('tests/viper-test-files/test_files/whoami.exe', standalone=False) first.add_object(file_obj) first.add_object(bin_obj)