Files
httprunner/docs/examples/test_klook/utils/teardown_hooks.py
2019-12-11 15:19:57 +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