-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add filename parameter to client image proxy. #2792
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
Add filename parameter to client image proxy. #2792
Conversation
tseaver
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the testcase split.
| file_image = client.image(filename='my_image.jpg') | ||
| m.assert_called_once_with('my_image.jpg', 'rb') | ||
| self.assertIsInstance(file_image, Image) | ||
| self.assertEqual(file_image.content, B64_IMAGE_CONTENT) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
dhermes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than @tseaver suggested test change
|
I got a 👍 from @tseaver on the change so I'm going to merge this. |
20f0f7f to
7aec5b0
Compare
|
Squashed and cancelled travis. Once CircleCI goes green I'll merge. |
…e-to-client-image Add filename parameter to client image proxy.
…t-image Add filename parameter to client image proxy.
Towards #2753
Essentially I forgot to add this to the
client.image()proxy.