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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user