Speedup Reolink tests by using scope="module" (#125215)

* use scope="module"

* Instead of side_effect = None, use reset_mock(side_efffect=True)

* fix tests
This commit is contained in:
starkillerOG 2024-09-23 12:50:40 +02:00 committed by GitHub
parent a9d12608bd
commit 8ef7cae36d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 101 additions and 12 deletions

View file

@ -64,6 +64,8 @@ async def test_number(
blocking=True,
)
reolink_connect.set_volume.reset_mock(side_effect=True)
async def test_host_number(
hass: HomeAssistant,
@ -153,3 +155,5 @@ async def test_chime_number(
{ATTR_ENTITY_ID: entity_id, ATTR_VALUE: 1},
blocking=True,
)
test_chime.set_option.reset_mock(side_effect=True)