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

Use http.HTTPStatus in components/f* (#58244)

This commit is contained in:
Ville Skyttä
2021-10-22 23:10:47 +03:00
committed by GitHub
parent 4369b0b8be
commit b1360ffafb
11 changed files with 61 additions and 63 deletions

View File

@@ -1,4 +1,5 @@
"""Test the flo config flow."""
from http import HTTPStatus
import json
import time
from unittest.mock import patch
@@ -51,7 +52,7 @@ async def test_form_cannot_connect(hass, aioclient_mock):
}
),
headers={"Content-Type": CONTENT_TYPE_JSON},
status=400,
status=HTTPStatus.BAD_REQUEST,
)
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_USER}