mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Media Player tests patch demo object (#138854)
This commit is contained in:
parent
56e36cb1ff
commit
1d43cb3f29
@ -283,7 +283,7 @@ async def test_media_browse(
|
|||||||
client = await hass_ws_client(hass)
|
client = await hass_ws_client(hass)
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.media_player.MediaPlayerEntity.async_browse_media",
|
"homeassistant.components.demo.media_player.DemoBrowsePlayer.async_browse_media",
|
||||||
return_value=BrowseMedia(
|
return_value=BrowseMedia(
|
||||||
media_class=MediaClass.DIRECTORY,
|
media_class=MediaClass.DIRECTORY,
|
||||||
media_content_id="mock-id",
|
media_content_id="mock-id",
|
||||||
@ -323,7 +323,7 @@ async def test_media_browse(
|
|||||||
assert mock_browse_media.mock_calls[0][1] == ("album", "abcd")
|
assert mock_browse_media.mock_calls[0][1] == ("album", "abcd")
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.media_player.MediaPlayerEntity.async_browse_media",
|
"homeassistant.components.demo.media_player.DemoBrowsePlayer.async_browse_media",
|
||||||
return_value={"bla": "yo"},
|
return_value={"bla": "yo"},
|
||||||
):
|
):
|
||||||
await client.send_json(
|
await client.send_json(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user