1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Bump plexapi to 4.15.3 (#101088)

* Bump plexapi to 4.15.3

* Update tests for updated account endpoint

* Update tests for updated resources endpoint

* Switch to non-web client fixture

* Set __qualname__ attribute for new library behavior
This commit is contained in:
jjlawren
2023-09-29 22:04:00 -05:00
committed by GitHub
parent facdc5e862
commit a1d632c5d1
15 changed files with 159 additions and 84 deletions

View File

@@ -190,7 +190,11 @@ async def test_lookup_media_for_other_integrations(
assert result.shuffle
# Test with media not found
with patch("plexapi.library.LibrarySection.search", return_value=None):
with patch(
"plexapi.library.LibrarySection.search",
return_value=None,
__qualname__="search",
):
with pytest.raises(HomeAssistantError) as excinfo:
process_plex_payload(hass, MediaType.MUSIC, CONTENT_ID_BAD_MEDIA)
assert f"No {MediaType.MUSIC} results in 'Music' for" in str(excinfo.value)