python-kasa/kasa/tests
J. Nick Koston e31cc6662c
Keep connection open and lock to prevent duplicate requests (#213)
* Keep connection open and lock to prevent duplicate requests

* option to not update children

* tweaks

* typing

* tweaks

* run tests in the same event loop

* memorize model

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update kasa/protocol.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* dry

* tweaks

* warn when the event loop gets switched out from under us

* raise on unable to connect multiple times

* fix patch target

* tweaks

* isrot

* reconnect test

* prune

* fix mocking

* fix mocking

* fix test under python 3.7

* fix test under python 3.7

* less patching

* isort

* use mocker to patch

* disable on old python since mocking doesnt work

* avoid disconnect/reconnect cycles

* isort

* Fix hue validation

* Fix latitude_i/longitude_i units

Co-authored-by: Teemu R. <tpr@iki.fi>
2021-09-24 23:25:43 +02:00
..
fixtures Add KL130 fixture, initial lightstrip tests (#214) 2021-09-24 22:26:21 +02:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
newfakes.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
test_bulb.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
test_cli.py Improve testing harness to allow tests on real devices (#197) 2021-09-19 23:45:48 +02:00
test_dimmer.py Simplify API documentation by using doctests (#73) 2020-06-30 02:29:52 +02:00
test_discovery.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
test_emeter.py Add emeter support for strip sockets (#203) 2021-09-24 00:24:44 +02:00
test_lightstrip.py Add KL130 fixture, initial lightstrip tests (#214) 2021-09-24 22:26:21 +02:00
test_plug.py Improve testing harness to allow tests on real devices (#197) 2021-09-19 23:45:48 +02:00
test_protocol.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
test_readme_examples.py Keep connection open and lock to prevent duplicate requests (#213) 2021-09-24 23:25:43 +02:00
test_smartdevice.py Add emeter support for strip sockets (#203) 2021-09-24 00:24:44 +02:00
test_strip.py Improve testing harness to allow tests on real devices (#197) 2021-09-19 23:45:48 +02:00