1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

APIForbidden should result in 403 status (#4943)

This commit is contained in:
Mike Degatano
2024-03-04 11:09:17 -05:00
committed by GitHub
parent bb5e138134
commit 2c7b417e25
3 changed files with 11 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ async def test_api_discovery_forbidden(
with caplog.at_level(logging.ERROR):
resp = await api_client.post("/discovery", json={"service": "mqtt"})
assert resp.status == 400
assert resp.status == 403
result = await resp.json()
assert result["result"] == "error"
assert (