refactor load_testcases function name

This commit is contained in:
debugtalk
2018-08-04 23:58:07 +08:00
parent 1ae7040627
commit 305f84f3f7
4 changed files with 32 additions and 31 deletions

View File

@@ -380,7 +380,7 @@ class TestRunner(ApiServerUnittest):
def test_run_testcase_with_empty_header(self):
testcase_file_path = os.path.join(
os.getcwd(), 'tests/data/test_bugfix.yml')
testsets = loader.load_testsets_by_path(testcase_file_path)
testsets = loader.load_testcases(testcase_file_path)
testset = testsets[0]
config_dict_headers = testset["config"]["request"]["headers"]
test_dict_headers = testset["testcases"][0]["request"]["headers"]