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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user