Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adjusted query counts to account for new savepoints.

  • Loading branch information...
commit b746f8a9e3fb22fe5ff58bd2bd8b20fa80cd4800 1 parent 1adb7b3
Aymeric Augustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/admin_views/tests.py
4 tests/admin_views/tests.py
View
@@ -3576,7 +3576,7 @@ def test_user_permission_performance(self):
# Don't depend on a warm cache, see #17377.
ContentType.objects.clear_cache()
- with self.assertNumQueries(8):
+ with self.assertNumQueries(10):
response = self.client.get('/test_admin/admin/auth/user/%s/' % u.pk)
self.assertEqual(response.status_code, 200)
@@ -3614,7 +3614,7 @@ def test_save_button(self):
def test_group_permission_performance(self):
g = Group.objects.create(name="test_group")
- with self.assertNumQueries(6): # instead of 259!
+ with self.assertNumQueries(8): # instead of 259!
response = self.client.get('/test_admin/admin/auth/group/%s/' % g.pk)
self.assertEqual(response.status_code, 200)
Please sign in to comment.
Something went wrong with that request. Please try again.