mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Add missing exception translations in immich (#162889)
This commit is contained in:
@@ -37,14 +37,14 @@ async def test_get_media_source(hass: HomeAssistant) -> None:
|
||||
@pytest.mark.parametrize(
|
||||
("identifier", "exception_msg"),
|
||||
[
|
||||
("unique_id", "Could not resolve identifier that has no mime-type"),
|
||||
("unique_id", "identifier_no_mime_type_unresolvable"),
|
||||
(
|
||||
"unique_id|albums|album_id",
|
||||
"Could not resolve identifier that has no mime-type",
|
||||
"identifier_no_mime_type_unresolvable",
|
||||
),
|
||||
(
|
||||
"unique_id|albums|album_id|asset_id|filename",
|
||||
"Could not parse identifier",
|
||||
"identifier_unresolvable",
|
||||
),
|
||||
],
|
||||
)
|
||||
@@ -102,7 +102,7 @@ async def test_browse_media_unconfigured(hass: HomeAssistant) -> None:
|
||||
item = MediaSourceItem(
|
||||
hass, DOMAIN, "unique_id/albums/album_id/asset_id/filename.png", None
|
||||
)
|
||||
with pytest.raises(BrowseError, match="Immich is not configured"):
|
||||
with pytest.raises(BrowseError, match="not_configured"):
|
||||
await source.async_browse_media(item)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user