Home Assistant integration that provides a full-fledged Alarm Panel to control your Elmo/IESS alarm systems.
BSD 3-Clause "New" or "Revised" License
10
stars
5
forks
source link
tests(config_flow): add coverage for config exceptions; refactor `ConfigFlow` tests #102
Closed
palazzem closed 7 months ago
Related Issues
n/a
Proposed Changes:
This change improves the testing in the following areas:
validate_credentials
as it was a level of indirection. This makes testing straightforward as we don't need to test any helper._()
test helper that makes mocking easier with long python paths.ConfigFlow
tests so that they usepytest-mock
properly.pytest-mock
by removing context managers as they are not needed.Testing:
n/a
Extra Notes (optional):
n/a
Checklist