Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: fixed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jawad-khan committed Aug 2, 2023
1 parent 2ac76fb commit a9b78cc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ecommerce/extensions/api/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a9b78cc

Please sign in to comment.