Use pytest.mark.usefixtures in risco tests (#122955)

This commit is contained in:
epenet 2024-07-31 18:28:35 +02:00 committed by GitHub
parent c888908cc8
commit 3f091470fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,11 +174,10 @@ def save_mock():
@pytest.mark.parametrize("events", [TEST_EVENTS])
@pytest.mark.usefixtures("two_zone_cloud", "_set_utc_time_zone")
async def test_cloud_setup(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
two_zone_cloud,
_set_utc_time_zone,
save_mock,
setup_risco_cloud,
) -> None:
@ -207,11 +206,9 @@ async def test_cloud_setup(
_check_state(hass, category, entity_id)
@pytest.mark.usefixtures("setup_risco_local", "_no_zones_and_partitions")
async def test_local_setup(
hass: HomeAssistant,
entity_registry: er.EntityRegistry,
setup_risco_local,
_no_zones_and_partitions,
) -> None:
"""Test entity setup."""
for entity_id in ENTITY_IDS.values():