Commit 72704551 by Jason Bau

Fix some more tests after merging

parent 091a6530
...@@ -31,7 +31,6 @@ class TestInstructorDashboardEmailView(ModuleStoreTestCase): ...@@ -31,7 +31,6 @@ class TestInstructorDashboardEmailView(ModuleStoreTestCase):
response = self.client.get(reverse('instructor_dashboard', response = self.client.get(reverse('instructor_dashboard',
kwargs={'course_id': self.course.id})) kwargs={'course_id': self.course.id}))
email_link = '<a href="#" onclick="goto(\'Email\')" class="None">Email</a>' email_link = '<a href="#" onclick="goto(\'Email\')" class="None">Email</a>'
print(response.content)
self.assertTrue(email_link in response.content) self.assertTrue(email_link in response.content)
session = self.client.session session = self.client.session
......
...@@ -114,8 +114,8 @@ class ModuleRenderTestCase(ModuleStoreTestCase, LoginEnrollmentTestCase): ...@@ -114,8 +114,8 @@ class ModuleRenderTestCase(ModuleStoreTestCase, LoginEnrollmentTestCase):
field_data_cache, field_data_cache,
self.course_id self.course_id
) )
self.assertTrue(module.system.send_users_emailaddr_with_coderesponse) self.assertTrue(module.xmodule_runtime.send_users_emailaddr_with_coderesponse)
self.assertEqual(module.system.deanonymized_user_email, self.mock_user.email) self.assertEqual(module.xmodule_runtime.deanonymized_user_email, self.mock_user.email)
def test_module_not_populated_with_user_email(self): def test_module_not_populated_with_user_email(self):
""" """
...@@ -136,8 +136,8 @@ class ModuleRenderTestCase(ModuleStoreTestCase, LoginEnrollmentTestCase): ...@@ -136,8 +136,8 @@ class ModuleRenderTestCase(ModuleStoreTestCase, LoginEnrollmentTestCase):
field_data_cache, field_data_cache,
self.course_id self.course_id
) )
self.assertFalse(hasattr(module.system, 'send_users_emailaddr_with_coderesponse')) self.assertFalse(hasattr(module.xmodule_runtime, 'send_users_emailaddr_with_coderesponse'))
self.assertFalse(hasattr(module.system, 'deanonymized_user_email')) self.assertFalse(hasattr(module.xmodule_runtime, 'deanonymized_user_email'))
def test_xqueue_callback_success(self): def test_xqueue_callback_success(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