Commit ceb0fc79 by Chris Dodge

update tests to match text changes

parent 2c740594
...@@ -2102,7 +2102,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa ...@@ -2102,7 +2102,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
# check that the coupon redeem count should be 0 # check that the coupon redeem count should be 0
resp = self.client.get(instructor_dashboard) resp = self.client.get(instructor_dashboard)
self.assertEqual(resp.status_code, 200) self.assertEqual(resp.status_code, 200)
self.assertIn('Redeem Count', resp.content) self.assertIn('Number Redeemed', resp.content)
self.assertIn('<td>0</td>', resp.content) self.assertIn('<td>0</td>', resp.content)
# now make the payment of your cart items # now make the payment of your cart items
...@@ -2112,7 +2112,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa ...@@ -2112,7 +2112,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
resp = self.client.get(instructor_dashboard) resp = self.client.get(instructor_dashboard)
self.assertEqual(resp.status_code, 200) self.assertEqual(resp.status_code, 200)
self.assertIn('Redeem Count', resp.content) self.assertIn('Number Redeemed', resp.content)
self.assertIn('<td>1</td>', resp.content) self.assertIn('<td>1</td>', resp.content)
def test_get_sale_records_features_csv(self): def test_get_sale_records_features_csv(self):
......
...@@ -46,7 +46,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase): ...@@ -46,7 +46,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
response = self.client.get(self.url) response = self.client.get(self.url)
self.assertTrue(self.e_commerce_link in response.content) self.assertTrue(self.e_commerce_link in response.content)
# Coupons should show up for White Label sites with priced honor modes. # Coupons should show up for White Label sites with priced honor modes.
self.assertTrue('Coupons' in response.content) self.assertTrue('Coupon Code List' in response.content)
def test_user_has_finance_admin_rights_in_e_commerce_tab(self): def test_user_has_finance_admin_rights_in_e_commerce_tab(self):
response = self.client.get(self.url) response = self.client.get(self.url)
...@@ -77,7 +77,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase): ...@@ -77,7 +77,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
course_honor_mode = CourseMode.mode_for_course(self.course.id, 'honor') course_honor_mode = CourseMode.mode_for_course(self.course.id, 'honor')
price = course_honor_mode.min_price price = course_honor_mode.min_price
self.assertTrue('Course Price: <span>$' + str(price) + '</span>' in response.content) self.assertTrue('Course price per seat: <span>$' + str(price) + '</span>' in response.content)
self.assertFalse('+ Set Price</a></span>' in response.content) self.assertFalse('+ Set Price</a></span>' in response.content)
# removing the course finance_admin role of login user # removing the course finance_admin role of login user
...@@ -109,7 +109,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase): ...@@ -109,7 +109,7 @@ class TestECommerceDashboardViews(ModuleStoreTestCase):
url = reverse('instructor_dashboard', kwargs={'course_id': self.course.id.to_deprecated_string()}) url = reverse('instructor_dashboard', kwargs={'course_id': self.course.id.to_deprecated_string()})
response = self.client.get(url) response = self.client.get(url)
self.assertTrue('Course Price: <span>$' + str(price) + '</span>' in response.content) self.assertTrue('Course price per seat: <span>$' + str(price) + '</span>' in response.content)
def test_user_admin_set_course_price(self): def test_user_admin_set_course_price(self):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment