This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add enterprise url to offers emails (#97)
- Loading branch information
Lael Birch
authored
Sep 30, 2020
1 parent
3e720f3
commit 73a95ee
Showing
3 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -684,12 +684,14 @@ class SendOfferEmailsTests(BaseSendEmailTests): | |
SUBJECT = 'New edX course assignment' | ||
EMAIL_BODY = 'Template message with [email protected] GIL7RUEOU7VHBH7Q ' \ | ||
'http://tempurl.url/enroll 3 2012-04-23' | ||
BASE_ENTERPRISE_URL = 'https://bears.party' | ||
|
||
ASSIGNMENT_TASK_KWARGS = { | ||
'user_email': USER_EMAIL, | ||
'offer_assignment_id': OFFER_ASSIGNMENT_ID, | ||
'subject': SUBJECT, | ||
'email_body': EMAIL_BODY, | ||
'base_enterprise_url': BASE_ENTERPRISE_URL, | ||
} | ||
|
||
UPDATE_TASK_KWARGS = { | ||
|
@@ -889,8 +891,10 @@ def test_message_sent(self, mock_update_assignment): | |
( | ||
self.LOG_TASK_NAME, | ||
'INFO', | ||
'[Offer Assignment] Offer assignment notification sent with message --- {message}'.format( | ||
message=self.EMAIL_BODY | ||
'[Offer Assignment] Offer assignment notification sent with message --- ' + | ||
'{message}; base enterprise url --- {base_enterprise_url}'.format( | ||
message=self.EMAIL_BODY, | ||
base_enterprise_url=self.BASE_ENTERPRISE_URL | ||
) | ||
), | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters