From 9f88f8240429131557bf027f1f7cc89049509613 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 4 Jun 2021 14:29:41 +0200 Subject: [PATCH] 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. --- .../airtime_analyzer/tests/playability_analyzer_test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python_apps/airtime_analyzer/tests/playability_analyzer_test.py b/python_apps/airtime_analyzer/tests/playability_analyzer_test.py index 1e8480c1a..37c5bcadc 100644 --- a/python_apps/airtime_analyzer/tests/playability_analyzer_test.py +++ b/python_apps/airtime_analyzer/tests/playability_analyzer_test.py @@ -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():