procurement-ingest/tests
Adam Moussa 64f74c243a
test: lock attribute-context quote escaping in web_ui hostile-field test
The escaping regression lock asserted only the element-context vector
(raw <script> absent, &lt;script&gt; present) while its docstring claimed
quotes were covered -- the payload's " and ' were never asserted on, so
a quote-escaping regression on the onclick row-link sink (attribute
breakout -> event-handler injection) would have passed green.
/sh-security-review finding WC-01 (confirmed medium, test-integrity).

Add assertions that the onclick sink's JSON string renders its opening
quote as &quot; (raw " after window.location= fails), that the
payload's quote characters appear only entity-escaped, and that the
raw payload never appears anywhere in the body. Mutation-verified: the
test now fails when the sink's quote-escaping is dropped.
2026-07-20 14:53:17 -04:00
..
support test: consolidate test roots — one repo-root loader, shared support package, missing-scenario suites, enforced ruff/coverage floor (refactor phase 8) 2026-07-20 14:14:30 -04:00
requirements.txt test: consolidate test roots — one repo-root loader, shared support package, missing-scenario suites, enforced ruff/coverage floor (refactor phase 8) 2026-07-20 14:14:30 -04:00
test_bundle_consistency.py feat: decompose email-processor handlers into flat siblings + lazy boto3 clients (refactor phase 5) 2026-07-17 21:00:31 -04:00
test_handler_auth_seam.py test: consolidate test roots — one repo-root loader, shared support package, missing-scenario suites, enforced ruff/coverage floor (refactor phase 8) 2026-07-20 14:14:30 -04:00
test_parse_raw_email.py Add pytest suite and enable tests in CI (#95) 2026-07-15 19:06:20 -04:00
test_reprocess_contract.py Reject --all combined with --prefix/--since in reprocess.py 2026-07-17 17:03:44 -04:00
test_ses_auth.py fix(ses_auth): harden comment stripping and alarm evaluation window (#103) 2026-07-16 19:00:40 +00:00
test_web_ui_auth.py test: consolidate test roots — one repo-root loader, shared support package, missing-scenario suites, enforced ruff/coverage floor (refactor phase 8) 2026-07-20 14:14:30 -04:00
test_web_ui_handlers.py test: lock attribute-context quote escaping in web_ui hostile-field test 2026-07-20 14:53:17 -04:00