mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 00:29:37 +08:00
bugfix:解决validate为空时沿用上一个接口的validate问题
This commit is contained in:
@@ -168,12 +168,12 @@ class SessionContext(object):
|
||||
def validate(self, validators, resp_obj):
|
||||
""" make validations
|
||||
"""
|
||||
self.validation_results = []
|
||||
if not validators:
|
||||
return
|
||||
|
||||
logger.log_debug("start to validate.")
|
||||
|
||||
self.validation_results = []
|
||||
validate_pass = True
|
||||
failures = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user