Skip to content

Commit

Permalink
Clean up imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-certat committed Jul 16, 2024
1 parent c57121a commit 2b8fac7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions intelmq/tests/bots/outputs/misp/test_output_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"]},
{
Expand Down

0 comments on commit 2b8fac7

Please sign in to comment.