Skip to content

Commit d38dcda

Browse files
committed
TEST: scan processing 3
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
1 parent ac52247 commit d38dcda

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎test/server/test_presence_detection.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,14 @@ def read(query):
6868

6969
@pytest.fixture
7070
def minimal_patches():
71-
"""Patch unrelated pipeline steps."""
7271
with patch.multiple(
73-
"scan.session_events", # <-- target module
72+
"scan.session_events",
7473
exclude_ignored_devices=Mock(),
7574
save_scanned_devices=Mock(),
7675
print_scan_stats=Mock(),
7776
create_new_devices=Mock(),
7877
update_devices_data_from_scan=Mock(),
7978
update_devLastConnection_from_CurrentScan=Mock(),
80-
update_devPresentLastScan_based_on_nics=Mock(),
81-
update_devPresentLastScan_based_on_force_status=Mock(),
8279
update_vendors_from_mac=Mock(),
8380
update_ipv4_ipv6=Mock(),
8481
update_icons_and_types=Mock(),
@@ -87,7 +84,7 @@ def minimal_patches():
8784
insertOnlineHistory=Mock(),
8885
skip_repeated_notifications=Mock(),
8986
update_unread_notifications_count=Mock(),
90-
insert_events=Mock(),
87+
# insert_events optionally mocked depending on test
9188
):
9289
yield
9390

0 commit comments

Comments
 (0)