Commit d7a6e58f by chrisndodge

Merge pull request #2044 from edx/fix/cdodge/fix-test-on-css-class

fix broken tests. Also drive by fix for the sporadic failure on tests wh...
parents abc67b5e 6cec6697
...@@ -646,7 +646,7 @@ class ContentStoreTest(ModuleStoreTestCase): ...@@ -646,7 +646,7 @@ class ContentStoreTest(ModuleStoreTestCase):
resp = self.client.get(reverse('index')) resp = self.client.get(reverse('index'))
self.assertContains( self.assertContains(
resp, resp,
'<h1 class="title-1">My Courses</h1>', '<h1 class="page-header">My Courses</h1>',
status_code=200, status_code=200,
html=True html=True
) )
......
...@@ -48,7 +48,7 @@ class InternationalizationTest(ModuleStoreTestCase): ...@@ -48,7 +48,7 @@ class InternationalizationTest(ModuleStoreTestCase):
resp = self.client.get(reverse('index')) resp = self.client.get(reverse('index'))
self.assertContains(resp, self.assertContains(resp,
'<h1 class="title-1">My Courses</h1>', '<h1 class="page-header">My Courses</h1>',
status_code=200, status_code=200,
html=True) html=True)
...@@ -63,7 +63,7 @@ class InternationalizationTest(ModuleStoreTestCase): ...@@ -63,7 +63,7 @@ class InternationalizationTest(ModuleStoreTestCase):
) )
self.assertContains(resp, self.assertContains(resp,
'<h1 class="title-1">My Courses</h1>', '<h1 class="page-header">My Courses</h1>',
status_code=200, status_code=200,
html=True) html=True)
......
...@@ -631,8 +631,8 @@ class TestViewAuth(LoginEnrollmentTestCase): ...@@ -631,8 +631,8 @@ class TestViewAuth(LoginEnrollmentTestCase):
urls = reverse_urls(['info', 'progress'], course) urls = reverse_urls(['info', 'progress'], course)
urls.extend([ urls.extend([
reverse('book', kwargs={'course_id': course.id, reverse('book', kwargs={'course_id': course.id,
'book_index': book.title}) 'book_index': index})
for book in course.textbooks for index, book in enumerate(course.textbooks)
]) ])
return urls return urls
...@@ -643,8 +643,6 @@ class TestViewAuth(LoginEnrollmentTestCase): ...@@ -643,8 +643,6 @@ class TestViewAuth(LoginEnrollmentTestCase):
""" """
urls = reverse_urls(['about_course'], course) urls = reverse_urls(['about_course'], course)
urls.append(reverse('courses')) urls.append(reverse('courses'))
# Need separate test for change_enrollment, since it's a POST view
#urls.append(reverse('change_enrollment'))
return urls return urls
......
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