mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Fix synology_dsm test side effects (#114722)
This commit is contained in:
parent
be3c923c7f
commit
74d8c6cce4
@ -428,6 +428,8 @@ async def test_media_view(
|
|||||||
|
|
||||||
# success
|
# success
|
||||||
dsm_with_photos.photos.download_item = AsyncMock(return_value=b"xxxx")
|
dsm_with_photos.photos.download_item = AsyncMock(return_value=b"xxxx")
|
||||||
tempfile.tempdir = tmp_path
|
with patch.object(tempfile, "tempdir", tmp_path):
|
||||||
result = await view.get(request, "mocked_syno_dsm_entry", "10_1298753/filename.jpg")
|
result = await view.get(
|
||||||
|
request, "mocked_syno_dsm_entry", "10_1298753/filename.jpg"
|
||||||
|
)
|
||||||
assert isinstance(result, web.Response)
|
assert isinstance(result, web.Response)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user