Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #743: get_album() now returns None for 'audioPlaylistId' #744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sigma67
Copy link
Owner

@sigma67 sigma67 commented Feb 12, 2025

closes #743

Copy link

codecov bot commented Feb 12, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
112 1 111 2
View the top 1 failed test(s) by shortest run time
tests.mixins.test_browsing.TestBrowsing::test_get_album
Stack Traces | 0.54s run time
self = <tests.mixins.test_browsing.TestBrowsing object at 0x7fec27a15e50>
yt = <ytmusicapi.ytmusic.YTMusic object at 0x7fec2782a990>
yt_auth = <ytmusicapi.ytmusic.YTMusic object at 0x7fec2782aa50>
sample_album = 'MPREb_4pL8gzRtw1p'

    def test_get_album(self, yt, yt_auth, sample_album):
        album = yt_auth.get_album(sample_album)
        assert len(album) >= 9
        assert "isExplicit" in album
        assert album["tracks"][0]["isExplicit"]
        assert all(item["views"] is not None for item in album["tracks"])
        assert all(item["album"] is not None for item in album["tracks"])
        assert album["likeStatus"] is not None
>       assert album["audioPlaylistId"] is not None
E       assert None is not None

tests/mixins/test_browsing.py:117: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_album() now returns None for 'audioPlaylistId'
1 participant