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:
parent
4e94ce0cc7
commit
ab064a7f36
6 changed files with 121 additions and 20 deletions
|
@ -59,9 +59,7 @@ async def test_webhook_callback(
|
|||
|
||||
# test webhook callback single channel with error in event callback
|
||||
signal_ch.reset_mock()
|
||||
reolink_connect.ONVIF_event_callback = AsyncMock(
|
||||
side_effect=Exception("Test error")
|
||||
)
|
||||
reolink_connect.ONVIF_event_callback.side_effect = Exception("Test error")
|
||||
await client.post(f"/api/webhook/{webhook_id}", data="test_data")
|
||||
signal_ch.assert_not_called()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue