chg: Add even more debug for gha

pull/1145/head
Raphaël Vinot 2024-02-02 10:59:31 +01:00
parent 979d2ee155
commit 5301ddd1fa
2 changed files with 4 additions and 5 deletions

View File

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

View File

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