mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 07:49:55 +02:00
Faster transcoding tests thanks to smaller audio files (see #648)
This commit is contained in:
parent
fa5034bd35
commit
49e1bec7b9
4 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
|
@ -448,7 +448,7 @@ def test_get_audio_data(factories):
|
||||||
|
|
||||||
result = upload.get_audio_data()
|
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):
|
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}),
|
("sample.flac", {"bitrate": 1608000, "length": 0.001}),
|
||||||
("test.mp3", {"bitrate": 8000, "length": 267.70285714285717}),
|
("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):
|
def test_get_audio_file_data(name, expected):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue