mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use pytest.mark.usefixtures in risco tests (#122955)
This commit is contained in:
parent
c888908cc8
commit
3f091470fd
@ -174,11 +174,10 @@ def save_mock():
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("events", [TEST_EVENTS])
|
@pytest.mark.parametrize("events", [TEST_EVENTS])
|
||||||
|
@pytest.mark.usefixtures("two_zone_cloud", "_set_utc_time_zone")
|
||||||
async def test_cloud_setup(
|
async def test_cloud_setup(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entity_registry: er.EntityRegistry,
|
entity_registry: er.EntityRegistry,
|
||||||
two_zone_cloud,
|
|
||||||
_set_utc_time_zone,
|
|
||||||
save_mock,
|
save_mock,
|
||||||
setup_risco_cloud,
|
setup_risco_cloud,
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -207,11 +206,9 @@ async def test_cloud_setup(
|
|||||||
_check_state(hass, category, entity_id)
|
_check_state(hass, category, entity_id)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.usefixtures("setup_risco_local", "_no_zones_and_partitions")
|
||||||
async def test_local_setup(
|
async def test_local_setup(
|
||||||
hass: HomeAssistant,
|
|
||||||
entity_registry: er.EntityRegistry,
|
entity_registry: er.EntityRegistry,
|
||||||
setup_risco_local,
|
|
||||||
_no_zones_and_partitions,
|
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test entity setup."""
|
"""Test entity setup."""
|
||||||
for entity_id in ENTITY_IDS.values():
|
for entity_id in ENTITY_IDS.values():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user