rename samples/ to test_audio, and move it to tests/

This commit is contained in:
Joel Mathew Thomas
2025-01-11 03:24:05 +05:30
parent 65fefe5ace
commit 5164e2cebd
9 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -3,11 +3,11 @@ from src.input.file_reader import read_audio
from src.input.format_checker import is_supported_format
def test_read_audio():
file_path = "samples/cafe_crowd_talk.aiff"
file_path = "tests/test_audio/cafe_crowd_talk.aiff"
audio, sr = read_audio(file_path)
assert len(audio) > 0
assert sr > 0
def test_is_supported_format():
assert is_supported_format("samples/cafe_crowd_talk.aiff") == True
assert is_supported_format("samples/unsupported_file.txt") == False
assert is_supported_format("tests/test_audio/cafe_crowd_talk.aiff") == True
assert is_supported_format("tests/test_audio/unsupported_file.txt") == False