Skip to content

Commit

Permalink
Updated unit tests for EmailSender class
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Jul 10, 2024
1 parent d085741 commit c28e1af
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions services/common/tests/test_emailSender.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c28e1af

Please sign in to comment.