Example #1
0
 def test_file_finder(self):
     self.assertEqual(len(rasa_plus._get_files(path=f"{self.t_nlu}/original")), 1)
Example #2
0
 def test_get_files_path_does_not_exist(self):
     self.assertEqual(len(rasa_plus._get_files(path="random")), 0)
Example #3
0
 def test_get_files_path_not_provided(self):
     with self.assertRaises(TypeError):
         rasa_plus._get_files()
Example #4
0
 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/"),
     )
Example #5
0
 def test_file_finder_multiple_folders(self):
     self.assertEqual(
         len(rasa_plus._get_files(path=f"{self.t_domain}/multiple_folders")), 7
     )
Example #6
0
 def test_file_finder_multiple_files(self):
     self.assertEqual(len(rasa_plus._get_files(path=f"{self.t_domain}/2_split/")), 2)