TEST: field locking test fixes 3

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-01-29 08:16:06 +11:00
parent 14a92ad2f8
commit 0fd3bd6974
2 changed files with 5 additions and 0 deletions

View File

@@ -717,6 +717,7 @@ def test_scan_updates_ip_addresses(scan_db, mock_device_handlers):
# Run scan update
device_handling.update_devices_data_from_scan(db)
device_handling.update_ipv4_ipv6(db)
row = cur.execute(
"SELECT devLastIP, devPrimaryIPv4, devPrimaryIPv6 FROM Devices WHERE devMac = ?",
@@ -797,6 +798,7 @@ def test_scan_updates_ipv6_without_changing_ipv4(scan_db, mock_device_handlers):
# Run scan update
device_handling.update_devices_data_from_scan(db)
device_handling.update_ipv4_ipv6(db)
row = cur.execute(
"SELECT devPrimaryIPv4, devPrimaryIPv6 FROM Devices WHERE devMac = ?",
@@ -849,6 +851,7 @@ def test_scan_updates_presence_status(scan_db, mock_device_handlers):
# Run scan update
device_handling.update_devices_data_from_scan(db)
device_handling.update_presence_from_CurrentScan(db)
row = cur.execute(
"SELECT devPresentLastScan FROM Devices WHERE devMac = ?",

View File

@@ -147,6 +147,7 @@ def test_primary_ipv6_is_set_and_ipv4_preserved(in_memory_db, mock_device_handli
db.sql = cur
device_handling.update_devices_data_from_scan(db)
device_handling.update_ipv4_ipv6(db)
row = cur.execute(
"SELECT devLastIP, devPrimaryIPv4, devPrimaryIPv6 FROM Devices WHERE devMac = ?",
@@ -222,6 +223,7 @@ def test_primary_ipv4_is_set_and_ipv6_preserved(in_memory_db, mock_device_handli
db.sql = cur
device_handling.update_devices_data_from_scan(db)
device_handling.update_ipv4_ipv6(db)
row = cur.execute(
"SELECT devLastIP, devPrimaryIPv4, devPrimaryIPv6 FROM Devices WHERE devMac = ?",