Skip to content

Commit

Permalink
fix some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jul 3, 2024
1 parent c97a13e commit 05cb3ca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 50 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/coverage-pr.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/mixins/test_browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_get_album_2024(self, yt):
album = yt.get_album("MPREabc")
assert len(album["tracks"]) == 19
assert len(album["artists"]) == 1
assert len(album) == 13
assert len(album) == 14

def test_get_album(self, yt, yt_auth, sample_album):
album = yt_auth.get_album(sample_album)
Expand Down
2 changes: 1 addition & 1 deletion tests/mixins/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_search_filters(self, yt_auth):
assert len(results) > 10
assert all(item["resultType"] == "podcast" for item in results)
results = yt_auth.search(query, filter="episodes")
assert len(results) > 10
assert len(results) > 5
assert all(item["resultType"] == "episode" for item in results)

def test_search_top_result(self, yt):
Expand Down
2 changes: 1 addition & 1 deletion ytmusicapi/mixins/browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def get_album(self, browseId: str) -> Dict:
album["tracks"] = parse_playlist_items(results["contents"], is_album=True)

other_versions = nav(
response, [*TWO_COLUMN_RENDERER, "secondaryContents", *SECTION_LIST, 1, *CAROUSEL]
response, [*TWO_COLUMN_RENDERER, "secondaryContents", *SECTION_LIST, 1, *CAROUSEL], True
)
if other_versions is not None:
album["other_versions"] = parse_content_list(other_versions["contents"], parse_album)
Expand Down

0 comments on commit 05cb3ca

Please sign in to comment.