9 tests exercise the full handler→wrap→send_email→Resend API path using Resend's @resend.dev test addresses. Skipped when RESEND_API_KEY is not set. With a full_access API key, tests also retrieve the sent email via resend.Emails.get() and assert on the rendered HTML (wordmark, links, project details, heat badges). With a sending_access key, send is verified but HTML assertions are skipped gracefully. Includes bounce handling test and 0.6s inter-test delay for Resend's 2 req/sec rate limit. Run with: RESEND_API_KEY=re_xxx pytest -k resend_live Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 KiB
35 KiB