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
13 changed files with 101 additions and 12 deletions

View File

@@ -43,6 +43,8 @@ async def test_camera(
# check getting the stream source
assert await async_get_stream_source(hass, entity_id) is not None
reolink_connect.get_snapshot.reset_mock(side_effect=True)
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
async def test_camera_no_stream_source(