mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: check config type
This commit is contained in:
@@ -511,6 +511,11 @@ def __make(tests_path: Text) -> NoReturn:
|
|||||||
f"Invalid testcase/testsuite: missing config part in testcase/testsuite.\npath: {test_file}"
|
f"Invalid testcase/testsuite: missing config part in testcase/testsuite.\npath: {test_file}"
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
elif not isinstance(test_content["config"], Dict):
|
||||||
|
logger.warning(
|
||||||
|
f"Invalid testcase/testsuite: config should be dict type, got {test_content['config']}"
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
# ensure path absolute
|
# ensure path absolute
|
||||||
test_content.setdefault("config", {})["path"] = test_file
|
test_content.setdefault("config", {})["path"] = test_file
|
||||||
|
|||||||
Reference in New Issue
Block a user