From 2b8fac77e970a608d945849f68a869a23e1e10d6 Mon Sep 17 00:00:00 2001 From: Kamil Mankowski Date: Tue, 16 Jul 2024 14:46:50 +0200 Subject: [PATCH] Clean up imports in tests --- intelmq/tests/bots/outputs/misp/test_output_feed.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/intelmq/tests/bots/outputs/misp/test_output_feed.py b/intelmq/tests/bots/outputs/misp/test_output_feed.py index f27b36716..5fedb657f 100644 --- a/intelmq/tests/bots/outputs/misp/test_output_feed.py +++ b/intelmq/tests/bots/outputs/misp/test_output_feed.py @@ -4,14 +4,13 @@ # -*- coding: utf-8 -*- import json -import select import unittest from pathlib import Path from tempfile import TemporaryDirectory -from .....lib.message import Message, MessageFactory import intelmq.lib.test as test from intelmq.bots.outputs.misp.output_feed import MISPFeedOutputBot +from intelmq.lib.message import MessageFactory EXAMPLE_EVENT = { "classification.type": "infected-system", @@ -347,7 +346,9 @@ def test_parameter_check_errors(self): {"attribute_mapping": "not-a-dict"}, {"attribute_mapping": {"not-a-field": {}}}, {"attribute_mapping": {"source.ip": "not-a-dict"}}, - {"tagging": {"not-all": []}}, # without event_separator, only __all__ is allowed + { + "tagging": {"not-all": []} + }, # without event_separator, only __all__ is allowed {"tagging": {"__all__": [], "other": []}}, {"event_separator": "malware.name", "tagging": ["not", "a", "dict"]}, {