Fix tests naming
This commit is contained in:
parent
d94193ce57
commit
9639010ba6
5 changed files with 17 additions and 17 deletions
|
@ -30,18 +30,18 @@ def test_analyze(filepath):
|
|||
assert abs(float(metadata["cueout"]) - length_seconds) < tolerance_seconds
|
||||
|
||||
|
||||
def test_missing_silan():
|
||||
def test_analyze_missing_silan():
|
||||
old = CuePointAnalyzer.SILAN_EXECUTABLE
|
||||
CuePointAnalyzer.SILAN_EXECUTABLE = "foobar"
|
||||
CuePointAnalyzer.analyze("tests/test_data/44100Hz-16bit-mono.mp3", dict())
|
||||
CuePointAnalyzer.SILAN_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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue