Use HTTP_NOT_FOUND constant (#33835)

This commit is contained in:
springstan
2020-04-09 00:57:47 +02:00
committed by GitHub
parent ac9429988b
commit 9a40d5b7ed
29 changed files with 98 additions and 78 deletions

View File

@@ -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):