Skip to content

test(review): use PATH stand-ins for scanner tests - #3806

Merged
dan-petty merged 2 commits into
mainfrom
test/2116-scanner-path-stand-ins
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/2116-scanner-path-stand-ins

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The scanners_installed fixture of the scanner executor tests no longer patches shutil.which. It writes one executable stand-in file for each review tool and puts that directory first on PATH. This follows docs/TESTING.md: a test doubles only process edges.

Closes #2116

Change: openspec/changes/archive/2026-11-06-2116-the-scanner-executor-tests-find-the/

The scanners_installed fixture of the scanner executor tests now writes one
executable stand-in for each review tool and puts that directory first on
PATH. It no longer patches shutil.which. Update the OpenSpec change to the
current line and test counts.

Refs #2116
@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 Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence. Base: origin/main ffaea53 (no rebase needed; the branch already sits on it).

  • uv run pytest tests/security/test_scanner_tool_executor.py: 60 passed.
  • Pre-push fast static checks: passed.
  • Fail-to-pass does not apply: this change rewrites a test fixture and adds no behavior. The premise check in the proposal shows the fixture is needed (without it: 1 failed, 1 error) and that stand-ins give 60 passed.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 16:38
@dan-petty
dan-petty merged commit c714551 into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the test/2116-scanner-path-stand-ins branch November 6, 2026 16:39
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

Development

Successfully merging this pull request may close these issues.

test(review): use PATH stand-ins for scanner tests

1 participant