From 5466bd5dbaba12fd2b51c1c817ce88d2f2b7c888 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 16 Aug 2022 17:26:25 +0200 Subject: [PATCH] UT: Remove unneeded fixture in SSHCredentialCollector tests --- .../test_ssh_credentials_collector.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/monkey/tests/unit_tests/infection_monkey/credential_collectors/test_ssh_credentials_collector.py b/monkey/tests/unit_tests/infection_monkey/credential_collectors/test_ssh_credentials_collector.py index 14a2e320a..ba12e416f 100644 --- a/monkey/tests/unit_tests/infection_monkey/credential_collectors/test_ssh_credentials_collector.py +++ b/monkey/tests/unit_tests/infection_monkey/credential_collectors/test_ssh_credentials_collector.py @@ -1,10 +1,9 @@ from unittest.mock import MagicMock import pytest -from pubsub.core import Publisher from common.credentials import Credentials, SSHKeypair, Username -from common.event_queue import IEventQueue, PyPubSubEventQueue +from common.event_queue import IEventQueue from infection_monkey.credential_collectors import SSHCredentialCollector @@ -13,11 +12,6 @@ def patch_telemetry_messenger(): return MagicMock() -@pytest.fixture -def event_queue() -> IEventQueue: - return PyPubSubEventQueue(Publisher()) - - def patch_ssh_handler(ssh_creds, monkeypatch): monkeypatch.setattr( "infection_monkey.credential_collectors.ssh_collector.ssh_handler.get_ssh_info",