fix: run api folder, each api should be encapsulated as individual testcase

This commit is contained in:
debugtalk
2018-12-24 12:24:30 +08:00
parent b0155c8f71
commit 32eae9390c
5 changed files with 21 additions and 9 deletions

View File

@@ -322,7 +322,7 @@ class TestSuiteLoader(unittest.TestCase):
os.getcwd(), 'tests/api/create_user.yml')
tests_mapping = loader.load_tests(path)
project_mapping = tests_mapping["project_mapping"]
api_list = tests_mapping["api"]
api_list = tests_mapping["apis"]
self.assertEqual(len(api_list), 1)
self.assertEqual(api_list[0]["request"]["url"], "/api/users/$uid")