Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adjusted query counts to account for new savepoints.

  • Loading branch information...
commit b746f8a9e3fb22fe5ff58bd2bd8b20fa80cd4800 1 parent 1adb7b3
Aymeric Augustin authored March 11, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/admin_views/tests.py
4  tests/admin_views/tests.py
@@ -3576,7 +3576,7 @@ def test_user_permission_performance(self):
3576 3576
 
3577 3577
         # Don't depend on a warm cache, see #17377.
3578 3578
         ContentType.objects.clear_cache()
3579  
-        with self.assertNumQueries(8):
  3579
+        with self.assertNumQueries(10):
3580 3580
             response = self.client.get('/test_admin/admin/auth/user/%s/' % u.pk)
3581 3581
             self.assertEqual(response.status_code, 200)
3582 3582
 
@@ -3614,7 +3614,7 @@ def test_save_button(self):
3614 3614
     def test_group_permission_performance(self):
3615 3615
         g = Group.objects.create(name="test_group")
3616 3616
 
3617  
-        with self.assertNumQueries(6):  # instead of 259!
  3617
+        with self.assertNumQueries(8):  # instead of 259!
3618 3618
             response = self.client.get('/test_admin/admin/auth/group/%s/' % g.pk)
3619 3619
             self.assertEqual(response.status_code, 200)
3620 3620
 

0 notes on commit b746f8a

Please sign in to comment.
Something went wrong with that request. Please try again.