mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 06:49:38 +08:00
refactor: is_test_content
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user