from fastapi.testclient import TestClient from desklock_gateway.main import app def test_healthz() -> None: client = TestClient(app) response = client.get("/healthz") assert response.status_code == 200 assert response.json() == {"status": "ok"} def test_devices_registry_empty() -> None: client = TestClient(app) response = client.get("/devices") assert response.status_code == 200 assert isinstance(response.json(), dict)