python-kasa/kasa/tests
J. Nick Koston aed67dad16
Fix connection indeterminate state on cancellation (#636)
* Fix connection indeterminate state on cancellation

If the task the query is running in it cancelled, we do
know the state of the connection so we must close. Previously
we would not close on BaseException which could result
in reading the previous response if the previous query was
cancelled after the request had been sent

* add test for cancellation
2024-01-13 18:37:24 +01:00
..
fixtures Add L900-10 fixture and it's additional component requests (#629) 2024-01-10 19:40:36 +01:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Add L900-10 fixture and it's additional component requests (#629) 2024-01-10 19:40:36 +01:00
newfakes.py Improve test coverage (#625) 2024-01-10 20:37:43 +01:00
test_aestransport.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
test_bulb.py Add support for KS205 and KS225 wall switches (#594) 2024-01-03 19:31:42 +01:00
test_cli.py Improve test coverage (#625) 2024-01-10 20:37:43 +01:00
test_device_factory.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
test_device_type.py Move connect_single to SmartDevice.connect (#538) 2023-11-21 23:48:53 +01:00
test_deviceconfig.py Update config to_dict to exclude credentials if the hash is empty string (#626) 2024-01-10 20:47:30 +01:00
test_dimmer.py Fix pytest warnings about asyncio (#397) 2022-11-13 23:34:47 +01:00
test_discovery.py Return alias as None for new discovery devices before update (#627) 2024-01-11 16:12:02 +01:00
test_emeter.py Improve test coverage (#625) 2024-01-10 20:37:43 +01:00
test_klapprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
test_lightstrip.py Add transition parameter to lightstrip's set_effect (#416) 2023-02-18 18:03:54 +01:00
test_plug.py Add klap support for TAPO protocol by splitting out Transports and Protocols (#557) 2023-12-04 19:50:05 +01:00
test_protocol.py Fix connection indeterminate state on cancellation (#636) 2024-01-13 18:37:24 +01:00
test_readme_examples.py Add klap support for TAPO protocol by splitting out Transports and Protocols (#557) 2023-12-04 19:50:05 +01:00
test_smartdevice.py Pull up emeter handling to tapodevice base class (#601) 2024-01-03 19:04:34 +01:00
test_smartprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
test_strip.py Return alias as None for new discovery devices before update (#627) 2024-01-11 16:12:02 +01:00
test_usage.py Avoid linear search for emeter realtime and emeter_today (#622) 2024-01-05 02:01:00 +01:00