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

+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,