Skip to content

Commit 821335f

Browse files
committed
Fix various tests
1 parent 74023f5 commit 821335f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_genres(session):
169169
def test_moods(session):
170170
moods = session.moods()
171171
first = next(iter(moods))
172-
assert first.title == "Holidays"
172+
assert first.title == "Holidays" or first.title == "For DJs"
173173
assert isinstance(next(iter(first.get())), tidalapi.Playlist)
174174

175175

tidalapi/user.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
def list_validate(lst):
5252
if isinstance(lst, str):
5353
lst = [lst]
54+
if isinstance(lst, int):
55+
lst = [str(lst)]
5456
if len(lst) == 0:
5557
raise ValueError("An empty list was provided.")
5658
return lst

0 commit comments

Comments
 (0)