From cac9c17184e1fdfffbce336ce508efcf786b1120 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 20 Dec 2018 22:42:42 +0800 Subject: [PATCH] fix NameError --- httprunner/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httprunner/loader.py b/httprunner/loader.py index 3bb2865d..496ce8ca 100644 --- a/httprunner/loader.py +++ b/httprunner/loader.py @@ -310,7 +310,7 @@ def __extend_with_api_ref(raw_testinfo): # NOTICE: avoid project_mapping been changed during iteration. raw_testinfo["api_def"] = utils.deepcopy_dict(block) except KeyError: - raise exceptions.ApiNotFound("{} not found!".format(name)) + raise exceptions.ApiNotFound("{} not found!".format(api_name)) def __extend_with_testcase_ref(raw_testinfo):