email-connect/tests
tegwick 3497ca88bf
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
EMAIL-WP-0005 T05/T06: evidence realism and harness documentation
Adds harness.deliver_raw() to inject crafted .eml fixtures through the harness,
so they pick up the real Received: headers an MTA adds, and
harness.inject_maildir() as the byte-exact offline counterpart.

tests/test_evidence_realism.py asserts all ten recognized evidence classes
after passing through a real MTA, proves MTA delivery does not change which
evidence is produced, and covers Maildir injection offline.

Documents what no local server can honestly produce -- provider-generated DSNs,
real 4xx deferral and retry, ISP feedback loops, provider suppression behavior,
MX acceptance as distinct from provider acceptance -- and names SES simulator
addresses as the staging path. That tier stays out of the test run because it
needs real credentials.

Adds docs/test-harness-tutorial.md covering the three test tiers and the
start/send/scan/assert/reset walkthrough, with an explicit
assertable/not-assertable list so the evidence ceiling is stated where tests
get written. Adds a Maildir section to the mailbox report tutorial.

Completes EMAIL-WP-0005. Suite: 85 passed with the harness up, 64 passed +
21 skipped with it down.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 02:00:17 +02:00
..
fixtures EMAIL-WP-0005-T04: end-to-end send-and-scan tests, and two fixes they found 2026-08-14 01:54:56 +02:00
harness EMAIL-WP-0005 T05/T06: evidence realism and harness documentation 2026-08-14 02:00:17 +02:00
test_evidence_realism.py EMAIL-WP-0005 T05/T06: evidence realism and harness documentation 2026-08-14 02:00:17 +02:00
test_harness_users.py EMAIL-WP-0005-T03: add test-user addressing and reset helper 2026-08-14 01:46:09 +02:00
test_integration_send_scan.py EMAIL-WP-0005-T04: end-to-end send-and-scan tests, and two fixes they found 2026-08-14 01:54:56 +02:00
test_maildir.py EMAIL-WP-0005-T01: add Maildir mailbox source 2026-08-14 01:31:58 +02:00
test_parser.py EMAIL-WP-0005-T04: end-to-end send-and-scan tests, and two fixes they found 2026-08-14 01:54:56 +02:00
test_recipients.py feat: add expected recipient reporting 2026-06-02 03:07:13 +02:00
test_scanner.py feat: add expected recipient reporting 2026-06-02 03:07:13 +02:00
test_transactional.py EMAIL-WP-0005-T02: add GreenMail test harness 2026-08-14 01:41:38 +02:00