From c28e1af35c14c5b1b2ef10c796076e041aa03e75 Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Wed, 10 Jul 2024 13:59:08 -0600 Subject: [PATCH] Updated unit tests for `EmailSender` class --- services/common/tests/test_emailSender.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/services/common/tests/test_emailSender.py b/services/common/tests/test_emailSender.py index 94f8ae9e..0677f5f2 100644 --- a/services/common/tests/test_emailSender.py +++ b/services/common/tests/test_emailSender.py @@ -32,10 +32,11 @@ def test_send_with_tls_and_auth(): EMAIL_SUBJECT, EMAIL_MESSAGE, EMAIL_REPLY_EMAIL, - "true", # tlsEnabled - "true", # authEnabled EMAIL_APP_USERNAME, EMAIL_APP_PASSWORD, + False, + "true", # tlsEnabled + "true", # authEnabled ) # assert @@ -65,10 +66,11 @@ def test_send_with_tls_and_no_auth(): EMAIL_SUBJECT, EMAIL_MESSAGE, EMAIL_REPLY_EMAIL, - "true", # tlsEnabled - "false", # authEnabled EMAIL_APP_USERNAME, EMAIL_APP_PASSWORD, + False, + "true", # tlsEnabled + "false", # authEnabled ) # assert @@ -98,10 +100,11 @@ def test_send_with_no_tls_and_auth(): EMAIL_SUBJECT, EMAIL_MESSAGE, EMAIL_REPLY_EMAIL, - "false", # tlsEnabled - "true", # authEnabled EMAIL_APP_USERNAME, EMAIL_APP_PASSWORD, + False, + "false", # tlsEnabled + "true", # authEnabled ) # assert @@ -131,10 +134,11 @@ def test_send_with_no_tls_and_no_auth(): EMAIL_SUBJECT, EMAIL_MESSAGE, EMAIL_REPLY_EMAIL, - "false", # tlsEnabled - "false", # authEnabled EMAIL_APP_USERNAME, EMAIL_APP_PASSWORD, + False, + "false", # tlsEnabled + "false", # authEnabled ) # assert