get_album: track_number returns none when track unavailable + test (#516)

* get_album: track_number returns none when track unavailable + test

* Update ytmusicapi/parsers/playlists.py

Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>

* test_get_album: sans fixtures

---------

Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
This commit is contained in:
John Birdwell 2024-01-14 07:38:29 -06:00 • committed by GitHub
commit 2b42c58963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 10 deletions

View file

@ -24,12 +24,6 @@ def fixture_sample_album() -> str:
return "MPREb_4pL8gzRtw1p"
@pytest.fixture(name="badly_indexed_album")
def fixture_badly_indexed_album() -> str:
"""Sean Paul - Dutty Classics Collection"""
return "MPREb_TPH4WqN5pUo"
@pytest.fixture(name="sample_video")
def fixture_sample_video() -> str:
"""Oasis - Wonderwall"""