123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- """
- This file will test the differents modules in compute_annotations folder
- You must have the pip package pytest installed
- """
- import os
- import sys
- import pytest
- import shutil
- import pandas as pd
- fpath = os.path.join(os.path.dirname(__file__),'..', 'compute_annotations')
- sys.path.append(fpath)
- try:
- sys.modules.pop('utils') #need to do this to avoid utils conflict of importation
- except:
- pass
- import compute_annotations.utils as ca_utils
- import compute_annotations.annotations_functions as af
- import compute_annotations.compute_derived_annotations as cda
- import compute_annotations.conversational_settings as cs
- import compute_annotations.utils_annotations as uan
- import compute_annotations.utils_audio as uau
- sys.path.remove(fpath)
- ################ utils ###################
- ##########################################
- ######## annotations_functions ###########
- def test_conversations_annotations():
- pass
- # no test for now, see utils_annotations section
- #def test_acoustic_annotations():
- # pass
- ##########################################
- ##### compute_derived_annotations ########
- ##########################################
- ######## conversational_settings #########
-
- #just a list of settings to use for conversation
- #no test to conduct
- ##########################################
- ########## utils_annotations #############
- #acoustic annotation require the audio to be present
- #to integrate with a proper audio used
- #TODO find a suitable, short audio to put into
- #the test folder, to run the analysis on
- ##########################################
- ############# utils_audio ################
- ##########################################
-
|