Use HTTP_NOT_FOUND constant (#33835)

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

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
"""Test STT component setup."""
from homeassistant.components import stt
from homeassistant.const import HTTP_NOT_FOUND
from homeassistant.setup import async_setup_component
@@ -16,7 +17,7 @@ async def test_demo_settings_not_exists(hass, hass_client):
response = await client.get("/api/stt/beer")
assert response.status == 404
assert response.status == HTTP_NOT_FOUND
async def test_demo_speech_not_exists(hass, hass_client):
@@ -26,4 +27,4 @@ async def test_demo_speech_not_exists(hass, hass_client):
response = await client.post("/api/stt/beer", data=b"test")
assert response.status == 404
assert response.status == HTTP_NOT_FOUND