import json from application_landing_zone_agent.generator import generate, render_drawio, render_tsd from application_landing_zone_agent.model import normalize def test_normalize_and_tsd_include_contract_sections(): r = normalize({"name": "Orders", "requirements": ["place orders"], "security": ["SSO"], "custom": "kept"}) tsd = render_tsd(r) assert "# Technical Solution Design: Orders" in tsd assert "Functional requirements" in tsd assert "SSO" in tsd assert "custom" in tsd def test_drawio_is_editable_xml_and_escapes_title(): xml = render_drawio(normalize({"name": "A & B"})) assert xml.startswith("