Skip to content

Commit

Permalink
Fix failing test & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
flip-dots committed Mar 30, 2023
1 parent 7c2bb0f commit ae1a576
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/components/history/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,12 @@ async def test_entity_ids_limit_via_api_with_skip_initial_state(
("filter_entity_id", "status_code", "response_contains1", "response_contains2"),
[
("light.kitchen,light.cow", HTTPStatus.OK, "light.kitchen", "light.cow"),
("light.kitchen,light.cow&", HTTPStatus.OK, "light.kitchen", "light.cow"),
(
"light.kitchen,light.cow&",
HTTPStatus.BAD_REQUEST,
"message",
"Invalid filter_entity_id",
),
(
"light.kitchen,li-ght.cow",
HTTPStatus.BAD_REQUEST,
Expand Down Expand Up @@ -968,7 +973,8 @@ async def test_history_with_invalid_entity_ids(
client = await hass_client()

response = await client.get(
f"/api/history/period/{now}", params={"filter_entity_id": filter_entity_id},
f"/api/history/period/{now}",
params={"filter_entity_id": filter_entity_id},
)
assert response.status == status_code
response_json = await response.json()
Expand Down

0 comments on commit ae1a576

Please sign in to comment.