Skip to content

Commit

Permalink
🧪 Added file extension test for M4A.
Browse files Browse the repository at this point in the history
  • Loading branch information
exislow committed Dec 17, 2024
1 parent ac84d7c commit e848a5d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,3 +550,14 @@ def validate_stream_manifest(manifest, is_hi_res_lossless: bool = False):
def test_reset_session_quality(session):
# HACK: Make sure to reset audio quality to default value for remaining tests
session.audio_quality = Quality.default


def test_track_extension(session):
track = session.track(65119559)
# Set session as MPD/DASH type (i.e. HI_RES_LOSSLESS Quality).
session.audio_quality = Quality.low_320k
# Attempt to get stream and manifest
stream = track.get_stream()
manifest = stream.get_stream_manifest()
# Assert extension
assert manifest.file_extension == AudioExtensions.M4A

0 comments on commit e848a5d

Please sign in to comment.