Rework tests to work with new fixtures
This commit is contained in:
parent
8ac5c1ba03
commit
9f768bb5c4
6 changed files with 65 additions and 282 deletions
|
@ -27,7 +27,7 @@ def test_run_analysis(src_dir, dest_dir):
|
|||
assert metadata["year"] == "1999"
|
||||
assert metadata["genre"] == "Test Genre"
|
||||
assert metadata["mime"] == "audio/mp3"
|
||||
assert abs(metadata["length_seconds"] - 3.9) < 0.1
|
||||
assert metadata["length_seconds"] == pytest.approx(10.0, abs=0.1)
|
||||
assert metadata["length"] == str(
|
||||
datetime.timedelta(seconds=metadata["length_seconds"])
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue