python-kasa/kasa/tests
Steven B. cd0a74ca96
Improve supported module checks for hub children (#1188)
No devices in `fixtures/smart/child` support the `get_device_time` or
`get_device_usage` methods so this PR tests for whether the device is a
hub child and marks those modules/methods as not supported. This
prevents features being erroneously created on child devices.

It also moves the logic for getting the time from the parent module
behind getting it from the child module which was masking the creation
of these unsupported modules.
2024-10-23 17:17:27 +02:00
..
fixtures Add T110(US), T310(US) and T315(US) sensor fixtures (#1179) 2024-10-18 16:05:53 +02:00
smart Add waterleak alert timestamp (#1162) 2024-10-18 13:18:12 +02:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Remove async magic patch from tests (#1146) 2024-10-02 17:12:10 +02:00
device_fixtures.py Add support for T100 motion sensor (#1079) 2024-07-24 15:48:33 +02:00
discovery_fixtures.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
fakeprotocol_iot.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
fakeprotocol_smart.py Fix iot light effect brightness (#1092) 2024-07-31 15:58:48 +01:00
fixtureinfo.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
test_aestransport.py Enable newer encrypted discovery protocol (#1168) 2024-10-16 15:28:27 +01:00
test_bulb.py Enable ruff lint pycodestyle warnings (#1132) 2024-09-27 17:36:41 +02:00
test_childdevice.py Improve supported module checks for hub children (#1188) 2024-10-23 17:17:27 +02:00
test_cli.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
test_common_modules.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
test_device_factory.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
test_device_type.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
test_device.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
test_deviceconfig.py Rename and deprecate exception classes (#739) 2024-02-21 16:52:55 +01:00
test_dimmer.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
test_discovery.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
test_emeter.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
test_feature.py Remove async magic patch from tests (#1146) 2024-10-02 17:12:10 +02:00
test_httpclient.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
test_iotdevice.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
test_klapprotocol.py Add autouse fixture to patch asyncio.sleep (#1131) 2024-09-27 10:57:23 +01:00
test_lightstrip.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
test_plug.py Refactor split smartdevice tests to test_{iot,smart}device (#822) 2024-03-15 15:55:48 +00:00
test_protocol.py Remove async magic patch from tests (#1146) 2024-10-02 17:12:10 +02:00
test_readme_examples.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
test_smartdevice.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
test_smartprotocol.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
test_strip.py Fix post update hook for iot child devices (#1011) 2024-06-25 17:58:07 +00:00
test_usage.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00