bugfix: modify request with setup_hooks

This commit is contained in:
httprunner
2018-05-14 14:29:19 +08:00
parent d2b0343266
commit ae0e6e8049
4 changed files with 51 additions and 14 deletions

View File

@@ -84,3 +84,6 @@ def teardown_hook_sleep_N_secs(response, n_secs):
def hook_print(msg):
print(msg)
def modify_headers_os_platform(request, os_platform):
request["headers"]["os_platform"] = os_platform