From b515d858295561e1b4a82bb29f00862de03eb682 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 15 Jul 2019 00:18:46 +0800 Subject: [PATCH] fix #572: tests_def_mapping["testcases"] typo error --- CHANGELOG.md | 1 + httprunner/loader.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9b6c6e9..81553ab0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - fix #574: delete unnecessary code - fix #551: raise if times is not digit +- fix #572: tests_def_mapping["testcases"] typo error ## 2.2.3 (2019-06-30) diff --git a/httprunner/loader.py b/httprunner/loader.py index 0bf93417..1df7a8a3 100644 --- a/httprunner/loader.py +++ b/httprunner/loader.py @@ -351,9 +351,9 @@ def __extend_with_testcase_ref(raw_testinfo): raise exceptions.FileFormatError( "Invalid format testcase: {}".format(testcase_path)) - tests_def_mapping[testcase_path] = testcase_dict + tests_def_mapping["testcases"][testcase_path] = testcase_dict else: - testcase_dict = tests_def_mapping[testcase_path] + testcase_dict = tests_def_mapping["testcases"][testcase_path] raw_testinfo["testcase_def"] = testcase_dict