Beispiel #1
0
 def test_get_implemented_items_dict(self):
     path = Path(os.path.dirname(os.path.abspath(__file__)))
     test_dict = CommonUtils.get_implemented_items_dict(
         path, './*/**/**/*.py', "TestClassForUtils")
     self.assertEqual(1, len(test_dict))
     self.assertEqual("TestClassForUtils", list(test_dict.keys())[0])
 def get_implemented_classes(self):
     classes_dict = CommonUtils.get_implemented_items_dict(
         self.file_path, self.path_pattern, self.keyword)
     return classes_dict