Fix(API): Added email template

- Fix the missing logging library
This commit is contained in:
minhtrannhat
2022-12-21 10:59:46 -05:00
parent 8ef0ccf32e
commit ad5596c61c
4 changed files with 58 additions and 4 deletions

View File

@@ -6,5 +6,5 @@ from backend.lib.email import send_email
async def test_send_email(app: Quart, caplog: LogCaptureFixture) -> None:
async with app.app_context():
await send_email("member@tozo.dev", "Welcome", "email.html", {})
assert "Sending email.html to member@tozo.dev" in caplog.text
await send_email("member@minhtrannhat.com", "Welcome", "email.html", {})
assert "Sending email.html to member@minhtrannhat.com" in caplog.text