UT: Remove unneeded fixture in SSHCredentialCollector tests

This commit is contained in:
Ilija Lazoroski 2022-08-16 17:26:25 +02:00
parent 142136dd41
commit 5466bd5dba
1 changed files with 1 additions and 7 deletions

View File

@ -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",