From 9b288c2639adfe6eba59f70ef88377430613fe60 Mon Sep 17 00:00:00 2001 From: Christian Studer Date: Thu, 10 Oct 2024 14:41:00 +0200 Subject: [PATCH] fix: [tests] Quick fix on the tests for event report export as STIX 2.0 --- tests/test_stix20_export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_stix20_export.py b/tests/test_stix20_export.py index ac8dd02..af6bcbe 100644 --- a/tests/test_stix20_export.py +++ b/tests/test_stix20_export.py @@ -192,7 +192,7 @@ def _test_event_with_event_report(self, event): orgc = event['Orgc'] event_report = event['EventReport'][0] self.parser.parse_misp_event(event) - bundle = self._check_bundle_features(7) + bundle = self._check_bundle_features(6) identity, report, *stix_objects = bundle.objects timestamp = event['timestamp'] if not isinstance(timestamp, datetime): @@ -202,7 +202,7 @@ def _test_event_with_event_report(self, event): self.assertEqual(report.published, timestamp) for stix_object, object_ref in zip(stix_objects, object_refs): self.assertEqual(stix_object.id, object_ref) - ip_src, observed_data, domain_ip, note, _ = stix_objects + ip_src, observed_data, domain_ip, note = stix_objects self.assertEqual(note.id, f"x-misp-event-report--{event_report['uuid']}") timestamp = event_report['timestamp'] if not isinstance(timestamp, datetime):