def test_file_finder(self): self.assertEqual(len(rasa_plus._get_files(path=f"{self.t_nlu}/original")), 1)
def test_get_files_path_does_not_exist(self): self.assertEqual(len(rasa_plus._get_files(path="random")), 0)
def test_get_files_path_not_provided(self): with self.assertRaises(TypeError): rasa_plus._get_files()
def test_path_correct(self): self.assertEqual( rasa_plus._get_files(path=f"{self.t_domain}/original"), rasa_plus._get_files(path=f"{self.t_domain}/original/"), )
def test_file_finder_multiple_folders(self): self.assertEqual( len(rasa_plus._get_files(path=f"{self.t_domain}/multiple_folders")), 7 )
def test_file_finder_multiple_files(self): self.assertEqual(len(rasa_plus._get_files(path=f"{self.t_domain}/2_split/")), 2)