GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: fix tests generation logic by vam-google · Pull Request #1049 · googleapis/gapic-generator-python

This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Conversation

@vam-google

@vam-google vam-google commented Oct 29, 2021

Copy link
Copy Markdown
Contributor

This includes:

  1. Fix test logic for grpc+rest case, when clients with both transports need to be initialized in parametrized tests
  2. Fix 100% coverage problem for rest clients, when the http error (>= 400 error code) case logic was not covered.

This should conclude the rest transport related fixes (for the time being at least)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vam-google
fix: fix tests generation logic
4f52b27
This includes:
1) Fix test logic for grpc+rest case, when clients with both transports need to be initialized in parametrized tests
2) Fix 100% coverage problem for rest clients, when the http error (>= 400 error code) case logic was not covered.
@vam-google
vam-google requested a review from a team October 29, 2021 00:16
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 29, 2021
@vam-google
vam-google requested review from kbandes and software-dov October 29, 2021 00:16
kbandes
kbandes approved these changes Oct 29, 2021
View reviewed changes
@vam-google
fix integration testrs
e9d42f5
busunkim96
busunkim96 approved these changes Oct 29, 2021
View reviewed changes

@busunkim96 busunkim96 left a comment

Copy link
Copy Markdown
Contributor

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.

One non-blocking question, otherwise LGTM.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread gapic/templates/tests/unit/gapic/%name_%version/%sub/test_%service.py.j2
{% endif %}
{% endfor %}
request = request_type(request_init)
{% if method.client_streaming %}

@busunkim96 busunkim96 Oct 29, 2021

Copy link
Copy Markdown
Contributor

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.

Is streaming supported for the rest transport?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@software-dov software-dov Oct 29, 2021

Copy link
Copy Markdown
Contributor

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.

Not yet; that is intended to be part of next sprint. Currently it just raises NotImplemented.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
software-dov
software-dov approved these changes Oct 29, 2021
View reviewed changes

@software-dov software-dov left a comment

Copy link
Copy Markdown
Contributor

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. Just one question: how the hell did you get around the transport __call__ patch problem? I had to do this massive rewrite of the rest layer, but you seem to have avoided it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vam-google
vam-google merged commit 8f213ad into googleapis:master Oct 29, 2021
This was referenced Jan 18, 2022
chore(master): release reverted #1133
Merged
chore(master): release 0.40.0 #1138
Closed
chore(master): release 0.39.1 #1146
Closed
This was referenced Jan 26, 2022
chore(main): release 0.39.1 #1160
Closed
chore(main): release 0.39.1 #1162
Closed
chore(main): release 0.61.0 #1163
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@kbandes kbandes kbandes approved these changes
@software-dov software-dov software-dov approved these changes
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@vam-google @kbandes @software-dov @busunkim96
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.