Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live server test case #75

Open
awdeorio opened this issue Dec 20, 2019 · 0 comments
Open

Live server test case #75

awdeorio opened this issue Dec 20, 2019 · 0 comments
Labels

Comments

@awdeorio
Copy link
Owner

It would be nice to add a small number of test cases that use a live SMTP server. At present, any non-dry-run test cases mock the STMP library calls.

Start an SMTP server in a separate process using a pytest fixture. Something roughly equivalent to this CLI: python -m smtpd -n -c DebuggingServer localhost:1025 . Then a test case would use a server config that connects to localhost:1025.

https://stackoverflow.com/questions/20349170/socket-error-errno-111-connection-refused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant