UT: Move variable to above fixtures in test_tcp_scanner.py

This commit is contained in:
Shreya Malviya 2022-09-30 17:29:52 +05:30 committed by Ilija Lazoroski
parent 9754b4731c
commit 96af86f766
1 changed files with 2 additions and 3 deletions

View File

@ -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():