Skip to content

Commit

Permalink
docs: multipart_matcher argument order in example (#453)
Browse files Browse the repository at this point in the history
signature of this function is:
```
multipart_matcher(files, data=None)
```

However in example the order is reversed which can cause confusion.
  • Loading branch information
ankush authored Dec 6, 2021
1 parent 5358201 commit 7bc587a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ to the request:
req_files = {"file_name": b"Old World!"}
responses.add(
responses.POST, url="http://httpbin.org/post",
match=[multipart_matcher(req_data, req_files)]
match=[multipart_matcher(req_files, data=req_data)]
)
resp = requests.post("http://httpbin.org/post", files={"file_name": b"New World!"})
Expand Down

0 comments on commit 7bc587a

Please sign in to comment.