Skip to content
Snippets Groups Projects
Verified Commit 49e1bec7 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

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

parent fa5034bd
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -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):
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment