Skip to content

Conversation

@daspecster
Copy link
Contributor

Towards #2753

Essentially I forgot to add this to the client.image() proxy.

@daspecster daspecster added the api: vision Issues related to the Cloud Vision API. label Dec 1, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 1, 2016
@daspecster daspecster mentioned this pull request Dec 1, 2016
10 tasks
Copy link
Contributor

@tseaver tseaver left a 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.

Copy link
Contributor

@dhermes dhermes left a 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

@daspecster
Copy link
Contributor Author

I got a 👍 from @tseaver on the change so I'm going to merge this.

@daspecster daspecster force-pushed the vision-add-filename-to-client-image branch from 20f0f7f to 7aec5b0 Compare December 2, 2016 17:29
@daspecster
Copy link
Contributor Author

Squashed and cancelled travis. Once CircleCI goes green I'll merge.

@daspecster daspecster merged commit d775489 into googleapis:master Dec 2, 2016
@daspecster daspecster deleted the vision-add-filename-to-client-image branch December 2, 2016 17:54
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…e-to-client-image

Add filename parameter to client image proxy.
parthea pushed a commit that referenced this pull request Oct 21, 2023
…t-image

Add filename parameter to client image proxy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants