test: repair stale assertions in bluetooth group and deauth detector

Bluetooth aggregator/api/heuristics tests updated to current behavior;
deauth detector integration test rewritten to exercise the tracker and
alert path directly instead of patching __globals__ (read-only on
Python 3.14).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-06-12 15:44:59 +01:00
parent 30450295b5
commit 276b151e9e
5 changed files with 408 additions and 402 deletions
+2 -4
View File
@@ -98,10 +98,9 @@ def test_stop_scan_route(client, mock_app_module):
def test_enum_services_error_no_mac(client):
"""Test service enumeration validation."""
"""Test service enumeration validates required mac field and returns 400."""
response = client.post("/bt/enum", json={})
assert response.status_code == 200
assert response.get_json()["status"] == "error"
assert response.status_code == 400
def test_get_devices_route(client, mock_app_module):
@@ -126,4 +125,3 @@ def test_reload_oui_route(client, mocker):
assert response.status_code == 200
assert data["status"] == "success"
assert data["entries"] > 0