Reolink add 100% coverage of number platform (#124465)

* Add 100% number test coverage

* review comments

* fix styling

* re-add AsyncMock for chime
This commit is contained in:
starkillerOG
2024-08-23 12:34:58 +02:00
committed by GitHub
parent 4e94ce0cc7
commit ab064a7f36
6 changed files with 121 additions and 20 deletions

View File

@@ -318,7 +318,7 @@ async def test_browsing_not_loaded(
assert await hass.config_entries.async_setup(config_entry.entry_id)
await hass.async_block_till_done()
reolink_connect.get_host_data = AsyncMock(side_effect=ReolinkError("Test error"))
reolink_connect.get_host_data.side_effect = ReolinkError("Test error")
config_entry2 = MockConfigEntry(
domain=const.DOMAIN,
unique_id=format_mac(TEST_MAC2),