Fix inconsistent test across env

Liquidsoap version in CI is different from debian buster
and on test about playability is failing because of
this unhandled versions mismatch.
This commit is contained in:
jo 2021-06-04 14:29:41 +02:00
parent bafa6fc6d8
commit 9f88f82404

View file

@ -17,7 +17,7 @@ from airtime_analyzer.playability_analyzer import (
("tests/test_data/44100Hz-16bit-mp3-missingid3header.mp3"),
("tests/test_data/44100Hz-16bit-mono.ogg"),
("tests/test_data/44100Hz-16bit-stereo.ogg"),
("tests/test_data/44100Hz-16bit-stereo-invalid.wma"),
# ("tests/test_data/44100Hz-16bit-stereo-invalid.wma"),
("tests/test_data/44100Hz-16bit-stereo.m4a"),
("tests/test_data/44100Hz-16bit-stereo.wav"),
],
@ -38,9 +38,10 @@ def test_analyze_invalid_filepath():
test_analyze("non-existent-file")
# def test_analyze_invalid_wma():
# with pytest.raises(UnplayableFileError):
# test_analyze("tests/test_data/44100Hz-16bit-stereo-invalid.wma")
# This test is not be consistent with all Liquidsoap versions.
def test_analyze_invalid_wma():
with pytest.raises(UnplayableFileError):
test_analyze("tests/test_data/44100Hz-16bit-stereo-invalid.wma")
def test_analyze_unknown():