add configuration for pytest

This commit is contained in:
mfaisyal
2022-09-23 19:25:32 +07:00
parent fc3b710470
commit 2ccaf87649
5 changed files with 102 additions and 0 deletions

19
tests/speech/conftest.py Normal file
View File

@@ -0,0 +1,19 @@
from pytest import fixture
test_path = "tests/test_data/"
path_mp4 = test_path + "facial_speech_verbal_video_test.mp4"
path_wav = test_path + "facial_speech_verbal_audio_test.wav"
@fixture(scope="class")
def processing_speech_mp4(get_model):
m = get_model.speech
m.fit(path_mp4)
yield m
@fixture(scope="class")
def processing_speech_wav(get_model):
m = get_model.speech
m.fit(path_wav)
yield m