Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Oct 18, 2023

Pulled out from #1088 since it's a behavior change.

Also fixes the file tests. Unfortunately the special multipart form behavior is implemented in api_requestor, but our mocks mock at the api_requestor level so in order to actually make assertions about multipart you have to mock at the http_client level.

These tests were accidentally working because of the unintended mutation. Stopping the mutation broke them, but required the tests to change.

FileUpload is an alias for File, so I deleted file_upload_test.py as it's basically completely redundant.

tests/api_resources/test_file.py Show resolved Hide resolved
tests/api_resources/test_file.py Outdated Show resolved Hide resolved
@richardm-stripe richardm-stripe enabled auto-merge (squash) October 18, 2023 21:55
@richardm-stripe richardm-stripe merged commit eadc1bb into master Oct 18, 2023
@richardm-stripe richardm-stripe deleted the richardm-dont-mutate-multipart-headers branch October 18, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.