refactor function name: load_testcases_by_path => load_testsets_by_path

This commit is contained in:
httprunner
2018-04-17 21:42:48 +08:00
parent a92f382571
commit 5dfdd6ad93
4 changed files with 15 additions and 15 deletions

View File

@@ -146,7 +146,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 = testcase.load_testcases_by_path(testcase_file_path)
testsets = testcase.load_testsets_by_path(testcase_file_path)
testset = testsets[0]
config_dict_headers = testset["config"]["request"]["headers"]
test_dict_headers = testset["testcases"][0]["request"]["headers"]