From b00ae036553338de146c70d1eb3b6d99c82d9920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 2 Feb 2024 11:38:37 +0100 Subject: [PATCH] fix: Do not cast enum --- tests/testlive_comprehensive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 036cf3a..e741acc 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -135,8 +135,8 @@ class TestComprehensive(unittest.TestCase): mispevent = MISPEvent(force_timestamps=force_timestamps) mispevent.info = 'This is a super simple test' mispevent.distribution = Distribution.your_organisation_only - mispevent.threat_level_id = int(ThreatLevel.low) - mispevent.analysis = int(Analysis.completed) + mispevent.threat_level_id = ThreatLevel.low + mispevent.analysis = Analysis.completed mispevent.add_attribute('text', str(uuid4())) return mispevent