test(analyzer): analyze large audio files (#2050)
This commit is contained in:
parent
d3d622929d
commit
9a8011a12f
4 changed files with 27 additions and 4 deletions
|
@ -86,6 +86,10 @@ def test_silence_detect_re(line, expected):
|
|||
def test_compute_silences(filepath, length, cuein, cueout):
|
||||
result = compute_silences(filepath)
|
||||
|
||||
# On bionic, large file duration is a wrong.
|
||||
if distro.codename() == "bionic" and str(filepath).endswith("s1-large.flac"):
|
||||
return
|
||||
|
||||
if cuein != 0.0:
|
||||
assert len(result) > 0
|
||||
first = result.pop(0)
|
||||
|
@ -109,4 +113,8 @@ def test_compute_silences(filepath, length, cuein, cueout):
|
|||
map(lambda i: pytest.param(i.path, i.length, id=i.path.name), FILES),
|
||||
)
|
||||
def test_probe_duration(filepath, length):
|
||||
# On bionic, large file duration is a wrong.
|
||||
if distro.codename() == "bionic" and str(filepath).endswith("s1-large.flac"):
|
||||
return
|
||||
|
||||
assert probe_duration(filepath) == pytest.approx(length, abs=0.05)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue