mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-07-08 14:52:03 +00:00
tests: add type annotations to IoT tests (#1685)
Add type annotations to all test functions across 8 files in `tests/iot/`, improving type safety and enabling mypy to check function bodies.
This commit is contained in:
@@ -8,7 +8,7 @@ from ...device_fixtures import device_iot
|
||||
|
||||
@device_iot
|
||||
@pytest.mark.xdist_group(name="caplog")
|
||||
def test_schedule(dev: Device, caplog: pytest.LogCaptureFixture):
|
||||
def test_schedule(dev: Device, caplog: pytest.LogCaptureFixture) -> None:
|
||||
schedule = dev.modules.get(Module.IotSchedule)
|
||||
assert schedule
|
||||
if rules := schedule.rules:
|
||||
|
||||
Reference in New Issue
Block a user