mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-21 06:48:05 +00:00
Refactor split smartdevice tests to test_{iot,smart}device (#822)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from kasa import DeviceType
|
||||
|
||||
from .conftest import plug_iot, plug_smart, switch_smart, wallswitch_iot
|
||||
from .test_smartdevice import SYSINFO_SCHEMA
|
||||
from .conftest import plug, plug_iot, plug_smart, switch_smart, wallswitch_iot
|
||||
from .test_iotdevice import SYSINFO_SCHEMA
|
||||
|
||||
# these schemas should go to the mainlib as
|
||||
# they can be useful when adding support for new features/devices
|
||||
@@ -76,3 +76,8 @@ async def test_switch_device_info(dev):
|
||||
assert (
|
||||
dev.device_type == DeviceType.WallSwitch or dev.device_type == DeviceType.Dimmer
|
||||
)
|
||||
|
||||
|
||||
@plug
|
||||
def test_device_type_plug(dev):
|
||||
assert dev.device_type == DeviceType.Plug
|
||||
|
Reference in New Issue
Block a user