Fix tests naming

This commit is contained in:
jo 2021-05-29 18:39:10 +02:00
parent d94193ce57
commit 9639010ba6
5 changed files with 17 additions and 17 deletions

View file

@ -28,18 +28,18 @@ def test_analyze(filepath):
assert abs(metadata["replay_gain"] - expected_replaygain) < tolerance
def test_missing_replaygain():
def test_analyze_missing_replaygain():
old = ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE
ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE = "foobar"
ReplayGainAnalyzer.analyze("tests/test_data/44100Hz-16bit-mono.mp3", dict())
ReplayGainAnalyzer.REPLAYGAIN_EXECUTABLE = old
def test_invalid_filepath():
def test_analyze_invalid_filepath():
with pytest.raises(KeyError):
test_analyze("non-existent-file")
def test_invalid_wma():
def test_analyze_invalid_wma():
with pytest.raises(KeyError):
test_analyze("tests/test_data/44100Hz-16bit-stereo-invalid.wma")