refactor: is_test_content

This commit is contained in:
debugtalk
2020-01-01 23:19:29 +08:00
parent b5be7f0cb4
commit 46c3a43187
5 changed files with 98 additions and 122 deletions

View File

@@ -291,7 +291,7 @@ class HttpRunner(object):
logger.log_info("HttpRunner version: {}".format(__version__))
if loader.is_test_path(path_or_tests):
return self.run_path(path_or_tests, dot_env_path, mapping)
elif loader.is_testcases(path_or_tests):
elif loader.is_test_content(path_or_tests):
return self.run_tests(path_or_tests)
else:
raise exceptions.ParamsError("Invalid testcase path or testcases: {}".format(path_or_tests))