Files
httprunner/docs/examples/demo-klook/utils/teardown_hooks.py
2019-12-11 17:14:13 +08:00

7 lines
160 B
Python

def teardown_hook_set_encoding(response, encoding):
"""
Set encoding of response.
"""
response.resp_obj.encoding = encoding
return response