From 8209fdc2079cdfd38cf987aa5dcf533582f2d159 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 20 Apr 2018 22:05:50 +0800 Subject: [PATCH] bugfix: testset file path --- httprunner/task.py | 2 +- tests/test_httprunner.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/httprunner/task.py b/httprunner/task.py index f3451c00..8e2f5e18 100644 --- a/httprunner/task.py +++ b/httprunner/task.py @@ -62,7 +62,7 @@ class TestSuite(unittest.TestSuite): config_dict = testset.get("config", {}) self.output_variables_list = config_dict.get("output", []) - self.testset_file_path = config_dict["path"] + self.testset_file_path = config_dict.get("path") config_dict_parameters = config_dict.get("parameters", []) config_dict_variables = config_dict.get("variables", []) diff --git a/tests/test_httprunner.py b/tests/test_httprunner.py index 1ef82513..e06a243a 100644 --- a/tests/test_httprunner.py +++ b/tests/test_httprunner.py @@ -111,10 +111,6 @@ class TestHttpRunner(ApiServerUnittest): testsets = [ { "name": "post data", - "config": { - "path": "" - }, - "testcases": [ { "name": "post data",