feat: load api content on demand

This commit is contained in:
debugtalk
2019-12-16 18:42:19 +08:00
parent d0b52aad18
commit cc20d8b397
5 changed files with 14 additions and 119 deletions

View File

@@ -150,10 +150,3 @@ class TestFileLoader(unittest.TestCase):
)
env_variables_mapping = load.load_dot_env_file(dot_env_path)
self.assertEqual(env_variables_mapping, {})
def test_load_folder_content(self):
path = os.path.join(os.getcwd(), "tests", "api")
items_mapping = load.load_folder_content(path)
file_path = os.path.join(os.getcwd(), "tests", "api", "reset_all.yml")
self.assertIn(file_path, items_mapping)
self.assertIsInstance(items_mapping[file_path], dict)