Faster transcoding tests thanks to smaller audio files (see #648)

This commit is contained in:
Eliot Berriot 2019-01-04 12:23:45 +01:00
parent fa5034bd35
commit 49e1bec7b9
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -448,7 +448,7 @@ def test_get_audio_data(factories):
result = upload.get_audio_data()
assert result == {"duration": 229, "bitrate": 128000, "size": 3459481}
assert result == {"duration": 1, "bitrate": 112000, "size": 14858}
def test_library_queryset_with_follows(factories):

View File

@ -27,7 +27,7 @@ def test_guess_mimetype_try_using_extension_if_fail(wrong, factories, mocker):
[
("sample.flac", {"bitrate": 1608000, "length": 0.001}),
("test.mp3", {"bitrate": 8000, "length": 267.70285714285717}),
("test.ogg", {"bitrate": 128000, "length": 229.18304166666667}),
("test.ogg", {"bitrate": 112000, "length": 1}),
],
)
def test_get_audio_file_data(name, expected):