Skip to content

test(review): remove mock detection and test over edge fakes - #2885

Merged
dan-petty merged 1 commit into
mainfrom
test/1328-review-tested-through-public-interface
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/1328-review-tested-through-public-interface

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Remove mock detection (NonCallableMock) from _is_scannable_manifest in src/devops_cli/ai/review/pipeline.py and enforce via architectural invariant that src/ never imports unittest.mock. Replace internal _run_subprocess alias in src/devops_cli/ai/review/runner.py with canonical run_subprocess and route review runner and symbol delta git commands through process_fake.

Closes #1328

Change: openspec/changes/archive/2026-10-31-1328-review-tested-through-public-interface/

Remove mock detection (`NonCallableMock`) from `_is_scannable_manifest` in `src/devops_cli/ai/review/pipeline.py` and enforce via architectural invariant that `src/` never imports `unittest.mock`. Replace internal `_run_subprocess` alias in `src/devops_cli/ai/review/runner.py` with canonical `run_subprocess` and route review runner and symbol delta git commands through `process_fake`.

Closes #1328

Change: `openspec/changes/archive/2026-10-31-1328-review-tested-through-public-interface/`
@dan-petty dan-petty added type/test Type test: a new or changed test scope/review Multi-persona code review engine, verification, and findings labels Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 15:57
@dan-petty
dan-petty merged commit 2d0ec2b into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the test/1328-review-tested-through-public-interface branch October 31, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/review Multi-persona code review engine, verification, and findings type/test Type test: a new or changed test

Projects

None yet

1 participant