|
Option C Tools
|
Classes | |
| class | TestRedactorResult |
| class | TestStep1CustomPatterns |
| class | TestStep2SecretLines |
| class | TestStep2bGitUrlRedaction |
| class | TestStep3PathAnonymisation |
| class | TestStep4AnsiStripping |
| class | TestStep5Truncation |
| class | TestApplyAll |
Functions | |
| Redactor | make_redactor (**kwargs) |
Purpose
-------
Regression tests for :mod:`oct.mcp.redactor` — five-step output
sanitisation pipeline.
Responsibilities
----------------
- Verify secret-line filtering (T-03) and path anonymisation (T-07).
- Verify ANSI stripping, truncation, and git URL redaction.
- Verify custom redaction patterns.
Diagnostics
-----------
Domain: MCP-TESTS
Levels:
L2 — test lifecycle
L3 — assertion details
L4 — deep tracing
Contracts
---------
- Tests operate on in-memory strings; no files are written.
| Redactor tests_mcp.test_mcp_redactor.make_redactor | ( | ** | kwargs | ) |
Definition at line 40 of file test_mcp_redactor.py.