test_postprocessor3
- async test_postprocessor3.main()[source]
Smoke-test
postprocess_response()against a leak-prefixed multiline body.Runs
response_postprocessor.postprocess_responseover a single hard-coded fixture in which a suspiciousCRITICAL INSTRUCTIONleak line precedes the first-line bracket header, followed by several lines of normal body text. Thereprof the result is printed so the developer can verify how the pipeline treats the leading leak line and confirm that the legitimate multi-line body is preserved.This is a manual developer harness, not an assertion-based test: it makes no assertions and touches no external systems (no Redis streams, knowledge graph, LLM, or HTTP), only writing to stdout. It is declared
asyncand launched viaasyncio.runsolely for a uniform entrypoint;postprocess_responseis synchronous and nothing is awaited.Called by the module-level
asyncio.run(main())at the bottom of this file; no other internal callers were found.- Returns:
None. The test case’s output is emitted to stdout via
print.