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 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ac76fb
commit a9b78cc
Showing
1 changed file
with
7 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,16 @@ class UtilTests(TestCase): | |
def setUp(self): | ||
super(UtilTests, self).setUp() | ||
self.course = CourseFactory(id='test/course/123', name='Test Course 123') | ||
self.course.create_or_update_seat('honor', False, 0) | ||
self.course.create_or_update_seat('verified', True, 50, create_enrollment_code=True) | ||
self.course.create_or_update_seat('verified', True, 60) | ||
self.course.create_or_update_seat('verified', True, 70) | ||
seat = self.course.create_or_update_seat('verified', True, 60) | ||
second_seat = self.course.create_or_update_seat('verified', True, 70) | ||
self.mock_mobile_team_mail = '[email protected]' | ||
self.mock_email_body = { | ||
'subject': 'Course Change Alert for Test Course 123', | ||
'body': 'Course: Test Course 123, Sku: 4925CFE, Price: 70.00\n' | ||
'Course: Test Course 123, Sku: 927A99F, Price: 60.00\n' | ||
'Course: Test Course 123, Sku: 760ACE7, Price: 50.00\n' | ||
'Course: Test Course 123, Sku: 732F998, Price: 0.00' | ||
'body': 'Course: Test Course 123, Sku: {}, Price: 70.00\n' | ||
'Course: Test Course 123, Sku: {}, Price: 60.00'.format( | ||
second_seat.stockrecords.all()[0].partner_sku, | ||
seat.stockrecords.all()[0].partner_sku | ||
) | ||
} | ||
|
||
def test_send_mail_to_mobile_team_with_no_email_specified(self): | ||
|