mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Fix local_file partial tests (#63023)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -14,6 +14,9 @@ async def test_loading_file(hass, hass_client):
|
||||
|
||||
with mock.patch("os.path.isfile", mock.Mock(return_value=True)), mock.patch(
|
||||
"os.access", mock.Mock(return_value=True)
|
||||
), mock.patch(
|
||||
"homeassistant.components.local_file.camera.mimetypes.guess_type",
|
||||
mock.Mock(return_value=(None, None)),
|
||||
):
|
||||
await async_setup_component(
|
||||
hass,
|
||||
@@ -138,6 +141,9 @@ async def test_update_file_path(hass):
|
||||
|
||||
with mock.patch("os.path.isfile", mock.Mock(return_value=True)), mock.patch(
|
||||
"os.access", mock.Mock(return_value=True)
|
||||
), mock.patch(
|
||||
"homeassistant.components.local_file.camera.mimetypes.guess_type",
|
||||
mock.Mock(return_value=(None, None)),
|
||||
):
|
||||
|
||||
camera_1 = {"platform": "local_file", "file_path": "mock/path.jpg"}
|
||||
|
Reference in New Issue
Block a user