mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Use HTTP_NOT_FOUND constant (#33835)
This commit is contained in:
@@ -52,7 +52,7 @@ async def test_api_get_state(hass, mock_api_client):
|
||||
async def test_api_get_non_existing_state(hass, mock_api_client):
|
||||
"""Test if the debug interface allows us to get a state."""
|
||||
resp = await mock_api_client.get("/api/states/does_not_exist")
|
||||
assert resp.status == 404
|
||||
assert resp.status == const.HTTP_NOT_FOUND
|
||||
|
||||
|
||||
async def test_api_state_change(hass, mock_api_client):
|
||||
|
||||
Reference in New Issue
Block a user