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",