Skip to content

refactor(test): migrate repo_utils tests to shared mocks#3860

Closed
rickeylev wants to merge 1 commit into
bazel-contrib:mainfrom
rickeylev:migrate-test-mocks-location
Closed

refactor(test): migrate repo_utils tests to shared mocks#3860
rickeylev wants to merge 1 commit into
bazel-contrib:mainfrom
rickeylev:migrate-test-mocks-location

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Previously, a duplicate and less complete mock implementation existed at tests/support/mocks.bzl, while a more comprehensive one was available at tests/support/mocks/mocks.bzl. This duplication could lead to confusion and inconsistency in testing.

To resolve this, we have removed the redundant tests/support/mocks.bzl file and updated the repo_utils tests to use the shared mocks from //tests/support/mocks:mocks.bzl.

Previously, a duplicate and less complete mock implementation existed at `tests/support/mocks.bzl`, while a more comprehensive one was available at `tests/support/mocks/mocks.bzl`. This duplication could lead to confusion and inconsistency in testing.

To resolve this, we have removed the redundant `tests/support/mocks.bzl` file and updated the `repo_utils` tests to use the shared mocks from `//tests/support/mocks:mocks.bzl`.
@rickeylev
rickeylev requested a review from aignas as a code owner June 28, 2026 06:59

@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 updates the import path for the mocks module in tests/repo_utils/repo_utils_test.bzl to point to //tests/support/mocks:mocks.bzl and deletes the old mock file. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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