Skip to content

Commit

Permalink
fix: [tests] Quick fix on the tests for event report export as STIX 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Oct 10, 2024
1 parent 02fb9dd commit 9b288c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_stix20_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 9b288c2

Please sign in to comment.