Skip to content

Restore SMTP integration tests using Mailpit#186

Merged
lavr merged 1 commit intomasterfrom
fix/issue-185-smtp-integration-tests
Mar 30, 2026
Merged

Restore SMTP integration tests using Mailpit#186
lavr merged 1 commit intomasterfrom
fix/issue-185-smtp-integration-tests

Conversation

@lavr
Copy link
Copy Markdown
Owner

@lavr lavr commented Mar 30, 2026

Summary

  • Replace the removed lavr/docker-postfix with Mailpit as the CI mail server
  • Mailpit is lightweight, actively maintained, and requires no authentication setup
  • Re-enable SMTP_TEST_SETS=LOCAL pointing to Mailpit on port 1025

Fixes #185

@lavr lavr force-pushed the fix/issue-185-smtp-integration-tests branch from 017f047 to 3e034bc Compare March 30, 2026 22:49
- Mark SMTP-dependent tests with @pytest.mark.e2e
- Split CI into two jobs: unit tests (all Python versions, no mail
  server) and e2e tests (Python 3.14, with Mailpit)
- Replace the removed lavr/docker-postfix with axllent/mailpit
- Keep test_send_letters out of e2e to avoid external HTTP deps;
  add test_send_simple for basic SMTP verification instead

Fixes #185
@lavr lavr force-pushed the fix/issue-185-smtp-integration-tests branch from 3e034bc to f39b0be Compare March 30, 2026 22:59
@lavr lavr merged commit f7c3582 into master Mar 30, 2026
7 checks passed
@lavr lavr deleted the fix/issue-185-smtp-integration-tests branch March 30, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore SMTP integration tests with a mail server

1 participant