Ignore silan test for mp3 on buster
This commit is contained in:
parent
75fe8e5ade
commit
be2fcd11ac
|
@ -1,3 +1,4 @@
|
||||||
|
distro
|
||||||
mock
|
mock
|
||||||
pylint
|
pylint
|
||||||
pytest
|
pytest
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import distro
|
||||||
import pytest
|
import pytest
|
||||||
from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer
|
from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer
|
||||||
|
|
||||||
|
@ -17,6 +18,10 @@ def test_analyze(filepath, length, cuein, cueout):
|
||||||
if filepath.endswith("m4a"):
|
if filepath.endswith("m4a"):
|
||||||
return
|
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["cuein"]) == pytest.approx(cuein, abs=0.5)
|
||||||
assert float(metadata["cueout"]) == pytest.approx(cueout, abs=0.5)
|
assert float(metadata["cueout"]) == pytest.approx(cueout, abs=0.5)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue