Fix query counts after Django 1.8 merge.

This commit is contained in:
Peter Fogg
2015-11-24 15:47:51 -05:00
parent 9b7ce7f3f2
commit 75bef91e17
2 changed files with 5 additions and 5 deletions

View File

@@ -215,7 +215,7 @@ class SelfPacedCourseInfoTestCase(LoginEnrollmentTestCase, SharedModuleStoreTest
self.assertEqual(resp.status_code, 200)
def test_num_queries_instructor_paced(self):
self.fetch_course_info_with_queries(self.instructor_paced_course, 17, 4)
self.fetch_course_info_with_queries(self.instructor_paced_course, 19, 4)
def test_num_queries_self_paced(self):
self.fetch_course_info_with_queries(self.self_paced_course, 17, 4)
self.fetch_course_info_with_queries(self.self_paced_course, 19, 4)

View File

@@ -115,8 +115,8 @@ class TestDashboard(SharedModuleStoreTestCase):
CourseEnrollmentFactory.create(user=self.user, course_id=self.course.id)
self.client.login(username=self.user.username, password=self.test_password)
# Check the query count on the dashboard With no teams
with self.assertNumQueries(22):
# Check the query count on the dashboard with no teams
with self.assertNumQueries(18):
self.client.get(self.teams_url)
# Create some teams
@@ -131,7 +131,7 @@ class TestDashboard(SharedModuleStoreTestCase):
team.add_user(self.user)
# Check the query count on the dashboard again
with self.assertNumQueries(22):
with self.assertNumQueries(24):
self.client.get(self.teams_url)
def test_bad_course_id(self):