mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-09-21 13:24:59 -04:00
Enhance device MAC address handling in tests to ensure lowercase normalization and skip tests when web protection is disabled
This commit is contained in:
1 parent
3a73817048
commit
bc4f419927
3 files changed
+35
-11
No files matched your search
@@ -99,9 +99,9 @@ def test_copy_device(client, api_token, test_mac):
|
||||
)
|
||||
assert resp.status_code == 200
|
||||
|
||||
# Step 2: Generate a target MAC
|
||||
# Step 2: Generate a target MAC (lowercase to match DB trigger normalisation)
|
||||
target_mac = "aa:bb:cc:" + ":".join(
|
||||
f"{random.randint(0, 255):02X}" for _ in range(3)
|
||||
f"{random.randint(0, 255):02x}" for _ in range(3)
|
||||
)
|
||||
|
||||
# Step 3: Copy device
|
||||
|
||||
Reference in new issue
Block a user