コード例 #1
0
 def test_load_folder_content(self):
     path = os.path.join(os.getcwd(), "tests", "api")
     items_mapping = loader.load_folder_content(path)
     file_path = os.path.join(os.getcwd(), "tests", "api", "basic.yml")
     self.assertIn(file_path, items_mapping)
     self.assertIsInstance(items_mapping[file_path], list)
コード例 #2
0
ファイル: test_loader.py プロジェクト: kfusac/MyHttpRunner
 def test_load_folder_content(self):
     path = os.path.join(os.getcwd(), 'tests', 'api')
     items_mapping = loader.load_folder_content(path)
     file_path = os.path.join(os.getcwd(), 'tests', 'api', 'basic.yml')
     assert file_path in items_mapping
     assert isinstance(items_mapping[file_path], list)