Skip to content

chore(generator): clean up universe import - #17966

Merged
hebaalazzeh merged 1 commit into
mainfrom
clean-up-universe-import
Jul 31, 2026
Merged

chore(generator): clean up universe import#17966
hebaalazzeh merged 1 commit into
mainfrom
clean-up-universe-import

Conversation

@hebaalazzeh

Copy link
Copy Markdown
Contributor

Clean up universe import in _compat.py.j2

@hebaalazzeh hebaalazzeh self-assigned this Jul 31, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the unit tests in test_compat.py (and its template) across multiple generated packages. It replaces the aliased import of the _compat module (previously imported as universe) with direct imports of get_universe_domain, get_api_endpoint, and get_default_mtls_endpoint. It also imports EmptyUniverseError directly from google.api_core.universe and updates all test assertions to use these direct imports. I have no feedback to provide as there are no review comments and the changes are clean and consistent.

@hebaalazzeh
hebaalazzeh marked this pull request as ready for review July 31, 2026 22:20
@hebaalazzeh
hebaalazzeh requested a review from a team as a code owner July 31, 2026 22:20
@hebaalazzeh
hebaalazzeh enabled auto-merge (squash) July 31, 2026 22:21
@hebaalazzeh
hebaalazzeh merged commit e0fab5d into main Jul 31, 2026
104 checks passed
@hebaalazzeh
hebaalazzeh deleted the clean-up-universe-import branch July 31, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants