https://engineeringfordatascience.com/posts/mock_smtp_email_using_pytest/
How to mock sending SMTP emails using PyTest