mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-14 04:09:38 +08:00
refactor: builtin upload file method
This commit is contained in:
@@ -227,6 +227,10 @@ class RequestWithOptionalArgs(object):
|
||||
self.__t_step.request.allow_redirects = allow_redirects
|
||||
return self
|
||||
|
||||
def upload(self, **file_info) -> "RequestWithOptionalArgs":
|
||||
self.__t_step.request.upload.update(file_info)
|
||||
return self
|
||||
|
||||
# def hooks(self):
|
||||
# pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user