fix: missing request json

This commit is contained in:
debugtalk
2020-06-04 14:13:53 +08:00
parent 80b829f75f
commit 8bd3904e71
3 changed files with 13 additions and 0 deletions

View File

@@ -215,6 +215,10 @@ class RequestWithOptionalArgs(object):
self.__t_step.request.data = data
return self
def with_json(self, req_json) -> "RequestWithOptionalArgs":
self.__t_step.request.req_json = req_json
return self
def set_timeout(self, timeout: float) -> "RequestWithOptionalArgs":
self.__t_step.request.timeout = timeout
return self