Various test fixes.

This commit is contained in:
Robert Raposa
2017-05-04 15:21:27 -04:00
parent 2e8c68e609
commit 86637d7f6c
4 changed files with 5 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ class TestCourseHomePage(SharedModuleStoreTestCase):
get_course_in_cache(self.course.id)
# Fetch the view and verify the query counts
with self.assertNumQueries(36):
with self.assertNumQueries(35):
with check_mongo_calls(3):
url = course_home_url(self.course)
self.client.get(url)

View File

@@ -4,6 +4,7 @@ Tests for the Course Outline view and supporting views.
import datetime
import ddt
import json
from markupsafe import escape
from django.core.urlresolvers import reverse
from pyquery import PyQuery as pq
@@ -243,4 +244,4 @@ class TestEmptyCourseOutlinePage(SharedModuleStoreTestCase):
url = course_home_url(course)
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertContains(response, expected_text)
self.assertContains(response, escape(expected_text))

View File

@@ -84,7 +84,7 @@ class TestCourseUpdatesPage(SharedModuleStoreTestCase):
def test_queries(self):
# Fetch the view and verify that the query counts haven't changed
with self.assertNumQueries(34):
with self.assertNumQueries(32):
with check_mongo_calls(4):
url = course_updates_url(self.course)
self.client.get(url)

View File

@@ -191,7 +191,7 @@ class SystemTestSuite(NoseTestSuite):
if self.root == 'lms':
default_test_id += " {system}/tests.py"
default_test_id += " openedx/core/djangolib/*"
default_test_id += " openedx/features/*"
default_test_id += " openedx/features"
return default_test_id.format(system=self.root)