diff --git a/python_apps/airtime_analyzer/requirements-dev.txt b/python_apps/airtime_analyzer/requirements-dev.txt index df5ecde01..430650b2b 100644 --- a/python_apps/airtime_analyzer/requirements-dev.txt +++ b/python_apps/airtime_analyzer/requirements-dev.txt @@ -1,3 +1,4 @@ +distro mock pylint pytest diff --git a/python_apps/airtime_analyzer/tests/cuepoint_analyzer_test.py b/python_apps/airtime_analyzer/tests/cuepoint_analyzer_test.py index 61fb1f513..8dc8ab007 100644 --- a/python_apps/airtime_analyzer/tests/cuepoint_analyzer_test.py +++ b/python_apps/airtime_analyzer/tests/cuepoint_analyzer_test.py @@ -1,3 +1,4 @@ +import distro import pytest from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer @@ -17,6 +18,10 @@ def test_analyze(filepath, length, cuein, cueout): if filepath.endswith("m4a"): return + # Silan does not work with mp3 on debian buster + if filepath.endswith("mp3") and "buster" == distro.codename(): + return + assert float(metadata["cuein"]) == pytest.approx(cuein, abs=0.5) assert float(metadata["cueout"]) == pytest.approx(cueout, abs=0.5)