1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-19 19:01:03 +00:00

Add test for M4A embedded art

This commit is contained in:
Alban Féron 2020-11-01 15:44:56 +01:00
parent 0183bcb698
commit 194bf5e277
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python
# coding: utf-8
# #
# This file is part of Supysonic. # This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API. # Supysonic is a Python implementation of the Subsonic server API.
# #
# Copyright (C) 2017 Alban 'spl0k' Féron # Copyright (C) 2017-2020 Alban 'spl0k' Féron
# #
# Distributed under terms of the GNU AGPLv3 license. # Distributed under terms of the GNU AGPLv3 license.
@ -52,7 +51,7 @@ class MediaTestCase(ApiTestBase):
) )
self.trackid = track.id self.trackid = track.id
self.formats = [("mp3", "mpeg"), ("flac", "flac"), ("ogg", "ogg")] self.formats = ["mp3", "flac", "ogg", "m4a"]
for i in range(len(self.formats)): for i in range(len(self.formats)):
track_embeded_art = Track( track_embeded_art = Track(
title="[silence]", title="[silence]",
@ -61,7 +60,7 @@ class MediaTestCase(ApiTestBase):
artist=artist, artist=artist,
album=album, album=album,
path=os.path.abspath( path=os.path.abspath(
"tests/assets/formats/silence.{0}".format(self.formats[i][0]) "tests/assets/formats/silence.{0}".format(self.formats[i])
), ),
root_folder=folder, root_folder=folder,
folder=folder, folder=folder,

BIN
tests/assets/formats/silence.m4a Executable file

Binary file not shown.