refactor(analyzer): fix linting errors (#2029)

This commit is contained in:
Jonas L 2022-08-09 20:49:04 +02:00 committed by GitHub
parent b465629977
commit 1b93b7645e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 51 additions and 74 deletions

View file

@ -15,7 +15,7 @@ from ..fixtures import FILES
),
)
def test_analyze_cuepoint(filepath, length, cuein, cueout):
metadata = analyze_cuepoint(filepath, dict())
metadata = analyze_cuepoint(filepath, {})
assert metadata["length_seconds"] == pytest.approx(length, abs=0.1)
assert float(metadata["cuein"]) == pytest.approx(float(cuein), abs=1)

View file

@ -16,7 +16,7 @@ from ..fixtures import FILE_INVALID_DRM, FILES
map(lambda i: str(i.path), FILES),
)
def test_analyze_playability(filepath):
analyze_playability(filepath, dict())
analyze_playability(filepath, {})
def test_analyze_playability_missing_liquidsoap():
@ -24,7 +24,7 @@ def test_analyze_playability_missing_liquidsoap():
"libretime_analyzer.pipeline.analyze_playability.LIQUIDSOAP_EXECUTABLE",
"foobar",
):
analyze_playability(str(FILES[0].path), dict())
analyze_playability(str(FILES[0].path), {})
def test_analyze_playability_invalid_filepath():

View file

@ -18,5 +18,5 @@ def test_analyze_replaygain(filepath, replaygain):
if distro.codename() == "bionic" and str(filepath).endswith("+12.mp3"):
tolerance = 5
metadata = analyze_replaygain(filepath, dict())
metadata = analyze_replaygain(filepath, {})
assert metadata["replay_gain"] == pytest.approx(replaygain, abs=tolerance)