Use pytest.mark.usefixtures in risco tests (#122955)
This commit is contained in:
parent
c888908cc8
commit
3f091470fd
1 changed files with 2 additions and 5 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue