mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix local_file partial tests (#63023)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
b9247f3952
commit
e3c1a3567e
@ -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"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user