Repository navigation
test(cli): test files use public interfaces over the shared fakes - #3804
Merged
Merged
Conversation
… the shared fakes
… helpers have public names
Owner
Author
|
Test and check results
Names changed by the plan (product code)
Tests deleted or replaced
Rebase note
Review fixes in this PR
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
42 test files patched a devops_cli name or imported a private name of devops_cli. ADR 0007 and docs/TESTING.md forbid both: a test doubles only a process edge, through the shared fake of that edge, and reaches private code through its public interface.
Each test now installs a shared fake (process, git, cluster, GitHub, model, scanner, Qdrant, embedder, OTLP, web) and calls the public command or class. Where a pure function was the unit under test, it gets a public name and its callers change. Code that only a patch kept alive is removed: the function get_k8s_client of k8s/volume.py and the alias _HELM_RELEASES_BY_STACK. The change adds and removes no behavior.
The test test_volume_reclaim_confirmation_aborted is deleted: a CliRunner stdin is no terminal, so the prompt cannot be reached.
Closes #2167
Change:
openspec/changes/archive/2026-11-06-2167-the-49-test-files-that-no/