1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Add return type to tests without arguments (#87613)

* Add return type to tests without arguments

* Black

* Cancel fixture amends
This commit is contained in:
epenet
2023-02-07 14:20:06 +01:00
committed by GitHub
parent fb4c0b4b7a
commit 4142f0d15d
99 changed files with 473 additions and 459 deletions

View File

@@ -29,13 +29,13 @@ from tests.common import (
)
def test_generate_entity_id_requires_hass_or_ids():
def test_generate_entity_id_requires_hass_or_ids() -> None:
"""Ensure we require at least hass or current ids."""
with pytest.raises(ValueError):
entity.generate_entity_id("test.{}", "hello world")
def test_generate_entity_id_given_keys():
def test_generate_entity_id_given_keys() -> None:
"""Test generating an entity id given current ids."""
assert (
entity.generate_entity_id(