Fix test framework running against real devices (#1235)

This commit is contained in:
Steven B.
2024-11-11 17:41:31 +00:00
committed by GitHub
parent 32671da9e9
commit 71ae06fa83
18 changed files with 158 additions and 43 deletions

View File

@@ -125,8 +125,13 @@ async def test_parent_property(dev: Device):
@has_children_smart
@pytest.mark.requires_dummy()
async def test_child_time(dev: Device, freezer: FrozenDateTimeFactory):
"""Test a child device gets the time from it's parent module."""
"""Test a child device gets the time from it's parent module.
This is excluded from real device testing as the test often fail if the
device time is not in the past.
"""
if not dev.children:
pytest.skip(f"Device {dev} fixture does not have any children")