refactor: is_test_path

This commit is contained in:
debugtalk
2020-01-01 22:34:41 +08:00
parent 3ccf68061e
commit b5be7f0cb4
3 changed files with 27 additions and 14 deletions

View File

@@ -289,7 +289,7 @@ class HttpRunner(object):
"""
logger.log_info("HttpRunner version: {}".format(__version__))
if loader.is_testcase_path(path_or_tests):
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):
return self.run_tests(path_or_tests)