Refactor split smartdevice tests to test_{iot,smart}device (#822)

This commit is contained in:
Teemu R
2024-03-15 16:55:48 +01:00
committed by GitHub
parent 41e58252f7
commit 48ac39e6d8
11 changed files with 425 additions and 418 deletions

View File

@@ -24,7 +24,7 @@ from .conftest import (
variable_temp,
variable_temp_iot,
)
from .test_smartdevice import SYSINFO_SCHEMA
from .test_iotdevice import SYSINFO_SCHEMA
@bulb
@@ -370,3 +370,10 @@ SYSINFO_SCHEMA_BULB = SYSINFO_SCHEMA.extend(
],
}
)
@bulb
def test_device_type_bulb(dev):
if dev.is_light_strip:
pytest.skip("bulb has also lightstrips to test the api")
assert dev.device_type == DeviceType.Bulb