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
+2 -2
View File
@@ -2,7 +2,7 @@
import asyncio
from unittest import mock
from homeassistant.const import HTTP_INTERNAL_SERVER_ERROR
from homeassistant.const import HTTP_INTERNAL_SERVER_ERROR, HTTP_NOT_FOUND
from homeassistant.setup import async_setup_component
@@ -94,7 +94,7 @@ async def test_limit_refetch(aioclient_mock, hass, hass_client):
aioclient_mock.get("http://example.com/5a", text="hello world")
aioclient_mock.get("http://example.com/10a", text="hello world")
aioclient_mock.get("http://example.com/15a", text="hello planet")
aioclient_mock.get("http://example.com/20a", status=404)
aioclient_mock.get("http://example.com/20a", status=HTTP_NOT_FOUND)
await async_setup_component(
hass,