Skip to content

Commit

Permalink
feat: updated logic to specify channel name
Browse files Browse the repository at this point in the history
  • Loading branch information
sohailfatima committed Oct 14, 2024
1 parent a7becb8 commit b7fc5d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def send_ace_message(goal):
options = {
'transactional': True,
'from_address': settings.LMS_COMM_DEFAULT_FROM_EMAIL,
'override_default_channel': is_ses_enabled,
'override_default_channel': 'django_email',
}

msg = Message(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_params_with_ses(self, mock_ace):

assert mock_ace.call_count == 1
msg = mock_ace.call_args[0][0]
assert msg.options['override_default_channel'] is True
assert msg.options['override_default_channel'] == 'django_email'
assert msg.options['from_address'] == settings.LMS_COMM_DEFAULT_FROM_EMAIL

@mock.patch('lms.djangoapps.course_goals.management.commands.goal_reminder_email.ace.send')
Expand Down

0 comments on commit b7fc5d4

Please sign in to comment.