-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to do file upload or multipart/form-data #307
Comments
Faced with the same, it's strange that JVM and JS has the solution to upload multipart and python does not |
It's because the current Ruby core that we use in Python doesn't support it, but the rust core does. See this doc for how to do it in the meantime: https://docs.pact.io/faq#how-do-i-test-binary-files-in-responses-such-as-a-download |
@mefellows that seems to be binary responses. Not sure how to translate that to binary requests |
The point is to test the headers and things, you can't match the binary
contents themselves
…On Thu, 22 Sept 2022, 00:52 Franz Allan Valencia See, < ***@***.***> wrote:
@mefellows <https://github.com/mefellows> that seems to be binary
responses. Not sure how to translate that to binary requests
—
Reply to this email directly, view it on GitHub
<#307 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANFDGVKGKVOFZMGILLB6TV7MOLNANCNFSM6AAAAAAQR2F2D4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@mefellows curious, how come java, .net and js can do it? because they're in rust? |
Yep!
…On Thu, 22 Sept 2022, 17:03 Franz Allan Valencia See, < ***@***.***> wrote:
@mefellows <https://github.com/mefellows> curious, how come java, .net
and js can do it? because they're in rust?
—
Reply to this email directly, view it on GitHub
<#307 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANFDDJMTVE42C7SBGTXI3V7QAEHANCNFSM6AAAAAAQR2F2D4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I cannot find any information on how to do file upload with pact-python for consumer test. Kindly advice
The text was updated successfully, but these errors were encountered: