chg: remove IntEnum

pull/1145/head
Raphaël Vinot 2024-02-02 11:20:39 +01:00
parent 5301ddd1fa
commit 176eed77bf
2 changed files with 3 additions and 3 deletions

View File

@ -55,14 +55,14 @@ class Distribution(Enum):
inherit = 5
class ThreatLevel(IntEnum):
class ThreatLevel(Enum):
high = 1
medium = 2
low = 3
undefined = 4
class Analysis(IntEnum):
class Analysis(Enum):
initial = 0
ongoing = 1
completed = 2

View File

@ -1705,7 +1705,7 @@ class TestComprehensive(unittest.TestCase):
first_send = self.create_simple_event()
try:
first = self.user_misp_connector.add_event(first_send)
self.assertTrue(isinstance(first, MISPEvent), '\n'.join([first_send, first]))
self.assertTrue(isinstance(first, MISPEvent), 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)