-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Quickstart tests #569
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
Quickstart tests #569
Conversation
Change-Id: I5f01ec8003b9a9daf16e75119c048556e14afe42
Change-Id: Id6ba9d8e4fd3229e05b1c5a57b2cd3518350224d
|
||
@pytest.fixture | ||
def mock_client(cloud_config): | ||
original_client_ctor = translate.Client |
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.
what's a ctor?
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.
constructor.
vision/cloud-client/quickstart.py
Outdated
image = vision_client.image(content=image_file.read()) | ||
with io.open(file_name, 'rb') as image_file: | ||
content = image_file.read() | ||
import pdb; pdb.set_trace() |
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.
this looks vestigial
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.
Indeedly-doo. Fixed.
Change-Id: I5e259a0fe1864bcd65deb4cdeedb0d938b218ae4
I'm merging this, if anyone has concerns I'll address them in a follow up PR. |
LGTM |
No description provided.