-
- Downloads
Add more HomeKit controller tests (#20515)
* homekit_controller tests: automatically find entity ids in tests Some entities use dynamic ids because of the nature of the test fakes it is hard to predict the name of the entity that will be created. This inspects the EntityComponent of the domain to find the freshly created entity. * homekit_controller: Tests can now define their own Service models. All existing tests use models as defined upstream. But upstream only defines a few service models. This adds a generic model helper for creating test service/characteristic models. * homekit_controller: Add cover tests * homekit_controller: Add lock tests * homekit_controller: Add alarm_control_panel tests * homekit_controller: Update light tests for color_temp. * Revert "homekit_controller tests: automatically find entity ids in tests" This reverts commit 506caa4c3e0814eec637145d7d6eaf2bd642e99e. * homekit_controller: Mock entity name so entity_id is consistent. Also remove spurious subclass overrides that are identical to parent class. * homekit_controler: Make tests less awkward as allowed top level imports
Showing
- homeassistant/components/homekit_controller/cover.py 1 addition, 11 deletionshomeassistant/components/homekit_controller/cover.py
- homeassistant/components/homekit_controller/light.py 1 addition, 1 deletionhomeassistant/components/homekit_controller/light.py
- tests/components/homekit_controller/common.py 40 additions, 9 deletionstests/components/homekit_controller/common.py
- tests/components/homekit_controller/test_alarm_control_panel.py 79 additions, 0 deletions...components/homekit_controller/test_alarm_control_panel.py
- tests/components/homekit_controller/test_cover.py 213 additions, 0 deletionstests/components/homekit_controller/test_cover.py
- tests/components/homekit_controller/test_light.py 96 additions, 14 deletionstests/components/homekit_controller/test_light.py
- tests/components/homekit_controller/test_lock.py 59 additions, 0 deletionstests/components/homekit_controller/test_lock.py
Loading
Please register or sign in to comment