mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-13 02:48:07 +00:00
Move tests folder to top level of project (#1242)
This commit is contained in:
9
tests/iot/test_wallswitch.py
Normal file
9
tests/iot/test_wallswitch.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from ..device_fixtures import wallswitch_iot
|
||||
|
||||
|
||||
@wallswitch_iot
|
||||
def test_wallswitch_motion(dev):
|
||||
"""Check that wallswitches with motion sensor get modules enabled."""
|
||||
has_motion = "PIR" in dev.sys_info["dev_name"]
|
||||
assert "motion" in dev.modules if has_motion else True
|
||||
assert "ambient" in dev.modules if has_motion else True
|
Reference in New Issue
Block a user