mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 06:49:38 +08:00
add TeardownHooksFailure exception
This commit is contained in:
@@ -171,6 +171,7 @@ class Runner(object):
|
||||
# teardown hooks
|
||||
teardown_hooks = testcase_dict.get("teardown_hooks", [])
|
||||
if teardown_hooks:
|
||||
logger.log_info("start to run teardown hooks")
|
||||
self.context.bind_testcase_variable("response", resp_obj)
|
||||
self.do_hook_actions(teardown_hooks)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user