bugfix: set repsonse attribute

This commit is contained in:
httprunner
2018-07-26 22:33:35 +08:00
parent ae972b6efc
commit 3a2e07afcb
3 changed files with 82 additions and 0 deletions

View File

@@ -102,3 +102,4 @@ def alter_response(response):
response.status_code = 500
response.headers["Content-Type"] = "html/text"
response.json["headers"]["Host"] = "127.0.0.1:8888"
response.attributes["new_attribute"] = "new_attribute"