fix: fix load_tests for not exist path

This commit is contained in:
debugtalk
2019-12-04 14:19:01 +08:00
parent 9bf20b6ad0
commit 0c45f9b176
2 changed files with 14 additions and 14 deletions

View File

@@ -257,9 +257,7 @@ class HttpRunner(object):
"""
# load tests
self.exception_stage = "load tests"
path = loader.prepare_path(path)
tests_mapping = loader.load_tests(path, dot_env_path)
tests_mapping["project_mapping"]["test_path"] = path
if mapping:
tests_mapping["project_mapping"]["variables"] = mapping