-
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
feat: add ability to remove unversioned modules #2329
Conversation
@@ -145,6 +146,50 @@ def test_get_response_ignore_gapic_metadata(): | |||
assert res.file == CodeGeneratorResponse().file | |||
|
|||
|
|||
@pytest.mark.parametrize("unversioned_package_disabled", (True, False)) | |||
def test_get_response_ignore_unversioned_package(unversioned_package_disabled): | |||
g = make_generator() |
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.
Please don't use one character variable names. I see the same construct is used in other tests, but I advocate not perpetuating the practice.
g = make_generator() | |
generator = make_generator() |
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.
Fixed in 20f4050
service_yaml_config=service_config, | ||
) | ||
|
||
with mock.patch.object(jinja2.FileSystemLoader, "list_templates") as lt: |
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'd still suggest avoiding short names if possible, though these are two-character and used closed to the definition, which makes it more amenabel IMO.
Consider s/lt
/lister
/ and s/gt
/getter
/
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.
Fixed in 6491e53
Googlers see go/gapic-default-imports