def run_query(self):
     config = self.kwargs['config']
     directory = self.kwargs['directory']
     with CorpusContext(config) as c:
         update_sound_files(c, directory)
         all_found = c.has_all_sound_files()
     return all_found
Beispiel #2
0
 def run_query(self):
     config = self.kwargs['config']
     directory = self.kwargs['directory']
     with CorpusContext(config) as c:
         update_sound_files(c, directory)
         all_found = c.has_all_sound_files()
     return all_found
Beispiel #3
0
def test_update_sound_files(acoustic_config, textgrid_test_dir):
    with CorpusContext(acoustic_config) as c:
        update_sound_files(c, textgrid_test_dir)
        expected_path = os.path.join(textgrid_test_dir, 'acoustic_corpus.wav')
        assert(c.discourse_sound_file('acoustic_corpus').filepath == expected_path)
Beispiel #4
0
def test_update_sound_files(acoustic_config, textgrid_test_dir):
    with CorpusContext(acoustic_config) as c:
        update_sound_files(c, textgrid_test_dir)
        expected_path = os.path.join(textgrid_test_dir, 'acoustic_corpus.wav')
        assert (c.discourse_sound_file('acoustic_corpus').filepath ==
                expected_path)