"""Sanitizer tests for src.sanitize_news.sanitize. Bypass-shape coverage matches the security review for the legacy welcome-template regex sanitizer; closing all four classes is the reason we adopted nh3 for the news pipeline. """ from __future__ import annotations from src.sanitize_news import sanitize, stripped_text def test_basic_prose_round_trip(): assert sanitize("
Hello world
") == "Hello world
" def test_script_tag_stripped(): out = sanitize("x
") assert "