Skip to content

Commit e6b0e7f

Browse files
committed
Check MixType
1 parent 7bca56a commit e6b0e7f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_artist.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import tidalapi
2222
from tidalapi.exceptions import ObjectNotFound
23+
from tidalapi.mix import MixType
2324

2425
from .cover import verify_image_cover
2526

@@ -144,6 +145,9 @@ def test_get_radio_mix(session):
144145
artist = session.artist(3514310)
145146
radio = artist.get_radio_mix()
146147
assert radio.id == "000038b3b74d5ce3a17b43a36d62bb"
148+
assert radio.title == "The Turtles"
149+
assert radio.sub_title == "Artist Radio"
150+
assert radio.mix_type == MixType.artist
147151

148152

149153
def test_artist_image(session):

tests/test_media.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
MimeType,
3232
Quality,
3333
)
34+
from tidalapi.mix import MixType
3435

3536
from .cover import verify_image_resolution, verify_video_resolution
3637

@@ -452,6 +453,9 @@ def test_get_radio_mix(session):
452453
track = session.track(12445712)
453454
radio = track.get_radio_mix()
454455
assert radio.id == "001c2cbc32b5b7c17f8c0aa55d9541"
456+
assert radio.title == "Happy Together"
457+
assert radio.sub_title == "The Turtles"
458+
assert radio.mix_type == MixType.track
455459

456460

457461
def test_get_stream_bts(session):

0 commit comments

Comments
 (0)