(self)
| 8261 | self.assertEqual(Group.objects.count(), group_count + 1) |
| 8262 | |
| 8263 | def test_group_permission_performance(self): |
| 8264 | g = Group.objects.create(name="test_group") |
| 8265 | |
| 8266 | # Ensure no queries are skipped due to cached content type for Group. |
| 8267 | ContentType.objects.clear_cache() |
| 8268 | |
| 8269 | with self.assertNumQueries(6): |
| 8270 | response = self.client.get(reverse("admin:auth_group_change", args=(g.pk,))) |
| 8271 | self.assertEqual(response.status_code, 200) |
| 8272 | |
| 8273 | |
| 8274 | @override_settings(ROOT_URLCONF="admin_views.urls") |
nothing calls this directly
no test coverage detected