core/tests/components
Thomas55555 f040060b3c
Fix RecursionError in Husqvarna Automower coordinator (#123085)
* reach maximum recursion depth exceeded in tests

* second background task

* Update homeassistant/components/husqvarna_automower/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/husqvarna_automower/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* test

* modify test

* tests

* use correct exception

* reset mock

* use recursion_limit

* remove unneeded ticks

* test TimeoutException

* set lower recursionlimit

* remove not that important comment and move the other

* test that we connect and listen successfully

* Simulate hass shutting down

* skip testing against the recursion limit

* Update homeassistant/components/husqvarna_automower/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* mock

* Remove comment

* Revert "mock"

This reverts commit e8ddaea3d79ed1aceb696a055cc42ad08b4febca.

* Move patch to decorator

* Make execution of patched methods predictable

* Parametrize test, make mocked start_listening block

* Apply suggestions from code review

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
2024-11-15 18:47:59 +01:00
..
2024-10-08 18:39:04 +02:00
2024-10-24 14:32:48 +02:00
2024-10-08 18:39:04 +02:00
2024-10-08 18:39:04 +02:00
2024-08-28 19:16:05 +02:00
2024-10-28 13:41:50 -10:00
2024-10-08 18:39:04 +02:00
2024-08-15 18:21:07 +02:00
2024-10-08 18:39:04 +02:00
2024-11-15 09:42:20 +01:00
2024-10-26 01:47:27 +02:00
2024-09-20 17:47:12 +02:00
2024-10-08 18:39:04 +02:00
2024-08-12 13:28:09 +02:00
2024-09-04 15:33:23 +02:00
2024-10-20 22:17:00 +02:00
2024-11-06 19:32:23 +01:00
2024-10-26 01:47:27 +02:00
2024-10-26 01:47:27 +02:00
2024-09-30 14:43:23 +02:00
2024-10-08 18:39:04 +02:00
2024-10-26 01:47:27 +02:00
2024-10-08 18:39:04 +02:00
2024-10-26 01:47:27 +02:00
2024-10-05 12:13:52 +02:00
2024-08-28 09:25:56 +02:00
2024-10-08 18:39:04 +02:00
2024-11-06 15:38:32 +01:00
2024-07-22 13:09:08 +02:00
2024-10-17 10:41:57 +02:00
2024-09-05 23:03:50 +02:00
2024-10-08 18:39:04 +02:00
2024-07-24 20:37:38 +02:00
2024-08-15 10:03:03 +02:00