test: isolate CLI output capture with monkeypatch/redirect to fix stdout corruption in full suite (Issue #178) #180

Merged
sysadmin merged 1 commits from feat/issue-178-fix-test-suite-stdout-capture into master 2026-07-05 14:26:32 -05:00
1 Commits
Author SHA1 Message Date
sysadmin ff4ab500df test: isolate CLI output capture with monkeypatch/redirect to fix stdout corruption in full suite runs (Issue #178)
- Replace raw patch("sys.stdout") and contextlib.redirect_stderr with pytest MonkeyPatch or contextlib redirect scoped to main calls in CLI tests (create_*, prs, python_cli, manage_labels, merge_pr, review_pr).
- Add regression tests in test_review_proofs.py for stdout/stderr remaining usable.
- Ensures normal pytest summary output without junitxml workaround; improves review validation reporting per #173.
- No behavior change to production code or gates.

Refs #178
2026-07-05 15:16:55 -04:00