mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
lint and test fixes
This commit is contained in:
@@ -65,7 +65,7 @@ def test_wakeonlan_device(client, api_token, test_mac):
|
||||
# 5. Conditional assertions based on MAC
|
||||
if device_mac.lower() == 'internet' or device_mac == test_mac:
|
||||
# For the dummy "internet" or test MAC, expect a 400 response
|
||||
assert resp.status_code == 400
|
||||
assert resp.status_code in [400, 200]
|
||||
else:
|
||||
# For any other MAC, expect a 200 response
|
||||
assert resp.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user