Skip to content

Commit bed53ea

Browse files
committed
fix(test): give time for "test dupes" playlist tracks to become available
1 parent 488f1d7 commit bed53ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def fixture_get_playlist_with_dupes(yt_browser: YTMusic, sample_song_list_dupes)
484484
# Add songs to playlist
485485
shuffle(sample_song_list_dupes)
486486
yt_browser.add_playlist_items(playlist_id, sample_song_list_dupes, duplicates=True)
487+
time.sleep(1) # fixes issue where playlist is shown to have 0 tracks in it
487488
return playlist_id
488489

489490

tests/resources/test.example.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ client_id = YOUR_CLIENT_ID
44
client_secret = YOUR_CLIENT_SECRET
55

66
[uploads]
7-
file = ./resources/Jennifer Lost the War.mp3
7+
file_path = ./resources/Jennifer Lost the War.mp3

0 commit comments

Comments
 (0)