test_computeAnnotations.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. """
  2. This file will test the differents modules in compute_annotations folder
  3. You must have the pip package pytest installed
  4. """
  5. import os
  6. import sys
  7. import pytest
  8. import shutil
  9. import pandas as pd
  10. fpath = os.path.join(os.path.dirname(__file__),'..', 'compute_annotations')
  11. sys.path.append(fpath)
  12. try:
  13. sys.modules.pop('utils') #need to do this to avoid utils conflict of importation
  14. except:
  15. pass
  16. import compute_annotations.utils as ca_utils
  17. import compute_annotations.annotations_functions as af
  18. import compute_annotations.compute_derived_annotations as cda
  19. import compute_annotations.conversational_settings as cs
  20. import compute_annotations.utils_annotations as uan
  21. import compute_annotations.utils_audio as uau
  22. sys.path.remove(fpath)
  23. ################ utils ###################
  24. ##########################################
  25. ######## annotations_functions ###########
  26. def test_conversations_annotations():
  27. pass
  28. # no test for now, see utils_annotations section
  29. #def test_acoustic_annotations():
  30. # pass
  31. ##########################################
  32. ##### compute_derived_annotations ########
  33. ##########################################
  34. ######## conversational_settings #########
  35. #just a list of settings to use for conversation
  36. #no test to conduct
  37. ##########################################
  38. ########## utils_annotations #############
  39. #acoustic annotation require the audio to be present
  40. #to integrate with a proper audio used
  41. #TODO find a suitable, short audio to put into
  42. #the test folder, to run the analysis on
  43. ##########################################
  44. ############# utils_audio ################
  45. ##########################################