python-kasa/kasa/tests
J. Nick Koston d908a5ab2a
Avoid retrying open_connection on unrecoverable errors (#340)
* Avoid retrying open_connection on unrecoverable errors

- We can retry so hard that we block the event loop

Fixes
```
2022-04-16 22:18:51 WARNING (MainThread) [asyncio] Executing <Task finished name=Task-3576 coro=<open_connection() done, defined at /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/streams.py:25> exception=ConnectionRefusedError(61, "Connect call failed (192.168.107.200, 9999)") created at /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py:460> took 1.001 seconds
```

* comment
2022-04-24 19:38:42 +02:00
..
fixtures Add fixtures for kl420 (#339) 2022-04-14 02:51:15 +02:00
__init__.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00
conftest.py Add fixtures for kl420 (#339) 2022-04-14 02:51:15 +02:00
newfakes.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
test_bulb.py Ensure bulb state is restored when turning back on (#330) 2022-04-05 18:51:36 +02:00
test_cli.py Drop deprecated, type-specific options in favor of --type (#336) 2022-04-06 03:39:50 +02:00
test_dimmer.py Simplify API documentation by using doctests (#73) 2020-06-30 02:29:52 +02:00
test_discovery.py Catch exceptions raised on unknown devices during discovery (#240) 2021-10-29 02:44:51 +02:00
test_emeter.py Add emeter support for strip sockets (#203) 2021-09-24 00:24:44 +02:00
test_lightstrip.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01: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 Avoid retrying open_connection on unrecoverable errors (#340) 2022-04-24 19:38:42 +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 Fix modularize with strips (#326) 2022-04-05 19:27:46 +02:00
test_strip.py Improve testing harness to allow tests on real devices (#197) 2021-09-19 23:45:48 +02:00