forked from p34709852/monkey
UT: Move variable to above fixtures in test_tcp_scanner.py
This commit is contained in:
parent
9754b4731c
commit
96af86f766
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue