1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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

@@ -15,6 +15,7 @@ from homeassistant.components.smartthings.const import (
CONF_REFRESH_TOKEN,
DOMAIN,
)
from homeassistant.const import HTTP_NOT_FOUND
from homeassistant.setup import async_setup_component
from tests.common import MockConfigEntry, mock_coro
@@ -160,7 +161,7 @@ async def test_unknown_api_error(hass, smartthings_mock):
request_info = Mock(real_url="http://example.com")
smartthings_mock.apps.side_effect = ClientResponseError(
request_info=request_info, history=None, status=404
request_info=request_info, history=None, status=HTTP_NOT_FOUND
)
result = await flow.async_step_user({"access_token": str(uuid4())})