update modify_request_json

This commit is contained in:
debugtalk
2019-02-20 11:51:30 +08:00
parent aa857010a8
commit 708d26ee83
2 changed files with 6 additions and 6 deletions

View File

@@ -164,19 +164,19 @@ class TestRunner(ApiServerUnittest):
"method": "POST",
"headers": {
"content-type": "application/json",
"user_agent": "iOS/10.3",
"os_platform": "ios"
"user_agent": "iOS/10.3"
},
"json": {
"os_platform": "ios",
"sign": "f1219719911caae89ccc301679857ebfda115ca2"
}
},
"setup_hooks": [
"${modify_headers_os_platform($request, android)}"
"${modify_request_json($request, android)}"
],
"validate": [
{"check": "status_code", "expect": 200},
{"check": "content.headers.Os-Platform", "expect": "android"}
{"check": "content.json.os_platform", "expect": "android"}
]
}
test_runner = runner.Runner(config_dict, self.debugtalk_functions)