-
Notifications
You must be signed in to change notification settings - Fork 69
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
test: add tests for autogen-snippets option #1055
Conversation
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, one minor test case I think should be added, but not worth blocking the review over.
# so always disable snippetgen in that case | ||
# https://github.com/googleapis/gapic-generator-python/issues/1052 | ||
options = Options.build("old-naming") | ||
assert not options.autogen_snippets |
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.
I think, just for the sake of completeness, it would be good to have a test where both autogen-snippets=True
and old-naming
are set to make sure that the builder logic handles that correctly.
This reverts commit 185ecc7.
Enable snippetgen for the default (non-Ads) templates. This reverts commit 8bdb709 (which was a revert of #1044 and #1055). I've checked that the changes are OK (don't break generation for any APIs) by creating a [tag](https://github.com/googleapis/gapic-generator-python/commits/v0.62.0b1) and running the [presubmit](https://critique.corp.google.com/cl/424921742).
Follow up to #1044