core: Hue tests are slow
The problem
Hue tests are really slow
==================================================================================== slowest durations ====================================================================================
20.05s call tests/components/hue/test_sensor_v1.py::test_sensors_with_multiple_bridges[pyloop]
10.04s call tests/components/hue/test_device_trigger_v1.py::test_if_fires_on_state_change[pyloop]
10.04s call tests/components/hue/test_sensor_v1.py::test_new_sensor_discovered[pyloop]
10.04s call tests/components/hue/test_sensor_v1.py::test_hue_events[pyloop]
10.03s call tests/components/hue/test_device_trigger_v1.py::test_get_triggers[pyloop]
10.03s call tests/components/hue/test_sensor_v1.py::test_sensors[pyloop]
10.03s call tests/components/hue/test_sensor_v1.py::test_unsupported_sensors[pyloop]
10.03s call tests/components/hue/test_sensor_v1.py::test_sensor_removed[pyloop]
10.03s call tests/components/hue/test_sensor_v1.py::test_update_timeout[pyloop]
10.03s call tests/components/hue/test_sensor_v1.py::test_no_sensors[pyloop]
10.02s call tests/components/hue/test_sensor_v1.py::test_update_unauthorized[pyloop]
10.02s call tests/components/hue/test_services.py::test_hue_multi_bridge_activate_scene_zero_responds[pyloop]
10.02s call tests/components/hue/test_services.py::test_hue_multi_bridge_activate_scene_all_respond[pyloop]
10.02s call tests/components/hue/test_services.py::test_hue_multi_bridge_activate_scene_one_responds[pyloop]
(295 durations < 1s hidden. Use -vv to show these durations.)
================================================================================= short test summary info =================================================================================
FAILED tests/components/hue/test_sensor_v1.py::test_sensors_with_multiple_bridges[pyloop] - AssertionError: assert 3 == 1
Results (157.99s):
102 passed
1 failed
- tests/components/hue/test_sensor_v1.py:292 test_sensors_with_multiple_bridges[pyloop]
What version of Home Assistant Core has the issue?
core-2021.12.0.dev0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
hue
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (24 by maintainers)
you need to mock
is_v2_bridgehere 😉 https://github.com/home-assistant/core/blob/153f15c93b3f0eed6126d832d1437bd312689d5b/homeassistant/components/hue/migration.py#L49I’ll investigate and fix tomorrow. Thanks for the help!
I’ll have a look. Still strange that it’s not failing on my end but might as well be some kind of dns cache or something
that might be it… network IS enabled but NO bridge on the network found… Thanks for testing