1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Convert some tests to async and drop usage get_test_home_assistant (#64394)

* Fix some tests

* Update MS tests

* Convert last logbook tests to async
This commit is contained in:
Paulus Schoutsen
2022-01-18 19:37:17 -08:00
committed by GitHub
parent 394c6850a3
commit 08083f399e
7 changed files with 532 additions and 610 deletions

View File

@@ -279,8 +279,7 @@ async def test_snapshot_service(hass, mock_camera):
mopen = mock_open()
with patch("homeassistant.components.camera.open", mopen, create=True), patch(
"homeassistant.components.camera.os.path.exists",
Mock(spec="os.path.exists", return_value=True),
"homeassistant.components.camera.os.makedirs",
), patch.object(hass.config, "is_allowed_path", return_value=True):
await hass.services.async_call(
camera.DOMAIN,