From 96af86f766de2a536ed2c3b240af76ea8c8d9478 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 30 Sep 2022 17:29:52 +0530 Subject: [PATCH] UT: Move variable to above fixtures in test_tcp_scanner.py --- .../infection_monkey/network_scanning/test_tcp_scanner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/monkey/tests/unit_tests/infection_monkey/network_scanning/test_tcp_scanner.py b/monkey/tests/unit_tests/infection_monkey/network_scanning/test_tcp_scanner.py index e47febc36..17acd421a 100644 --- a/monkey/tests/unit_tests/infection_monkey/network_scanning/test_tcp_scanner.py +++ b/monkey/tests/unit_tests/infection_monkey/network_scanning/test_tcp_scanner.py @@ -16,6 +16,8 @@ OPEN_PORTS_DATA = {22: "SSH-banner", 80: "", 2222: "SSH2-banner"} TIMESTAMP = 123.321 +HOST_IP = "127.0.0.1" + @pytest.fixture(scope="module") def patch_timestamp(monkeypatch): @@ -34,9 +36,6 @@ def patch_check_tcp_ports(monkeypatch, open_ports_data): ) -HOST_IP = "127.0.0.1" - - def _get_tcp_scan_event(port_scan_data: PortScanData): port_statuses = {} for port, data in port_scan_data.items():