change: remove locust temporarily

This commit is contained in:
debugtalk
2020-05-15 22:48:59 +08:00
parent d05c235029
commit 0e5ca838fb
11 changed files with 13 additions and 435 deletions

View File

@@ -115,10 +115,16 @@ class ResponseObject(object):
"""
self.resp_obj = resp_obj
try:
body = resp_obj.json()
except ValueError:
body = resp_obj.content
self.resp_obj_meta = {
"status_code": resp_obj.status_code,
"headers": resp_obj.headers,
"body": resp_obj.json(),
"body": body,
}
self.validation_results: Dict = {}