palazzem / ha-econnect-alarm

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: replace custom MockConfigEntry with the official `hass.MockConfigEntry` #105

Closed palazzem closed 7 months ago

palazzem commented 7 months ago

Related Issues

n/a

Proposed Changes:

Instead of using our own MockConfigEntry, we're using the one provided directly from HA. It behaves exactly as the original one, with the only difference that we remove the MappingProxyType mapping (read-only protection) as we want to override values during tests.

This change is required to use config_entry fixture while testing our OptionsFlow.

Testing:

n/a

Extra Notes (optional):

n/a

Checklist

coveralls commented 7 months ago

Pull Request Test Coverage Report for Build 6747972151


Totals Coverage Status
Change from base Build 6746931046: 0.0%
Covered Lines: 476
Relevant Lines: 537

💛 - Coveralls