rename samples/ to test_audio, and move it to tests/
This commit is contained in:
+3
-3
@@ -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
|
||||
Reference in New Issue
Block a user