Skip to content

Commit

Permalink
feat: Add abs in mp3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowtter committed May 19, 2023
1 parent 4ec6092 commit 9883fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crispy-api/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def is_same_audio(self, file_path, expected_file_path):
audio = MP3(file_path)
expected_audio = MP3(expected_file_path)

assert audio.info.length - expected_audio.info.length < 0.1
assert abs(audio.info.length - expected_audio.info.length) < 0.1

def is_same_csv(self, file_path, expected_file_path):
with open(expected_file_path, "r") as e:
Expand Down

0 comments on commit 9883fe5

Please sign in to comment.