diff options
| author | Adam Johnson <me@adamj.eu> | 2024-05-10 12:06:27 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-05-13 08:34:57 +0200 |
| commit | d2c5a30e5a8595d06c4a70ff0f66032fee0d3c8e (patch) | |
| tree | 3dc4fb58409e0bde834fe7c8060fd84022360beb /tests | |
| parent | 1a36dce9c5e0627d46582829d7abd47ed872e3aa (diff) | |
Fixed #35408 -- Optimized post-migrate permission creation.
co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_management.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py index 0cc56b6760..5765c50034 100644 --- a/tests/auth_tests/test_management.py +++ b/tests/auth_tests/test_management.py @@ -1528,7 +1528,7 @@ class CreatePermissionsMultipleDatabasesTests(TestCase): def test_set_permissions_fk_to_using_parameter(self): Permission.objects.using("other").delete() - with self.assertNumQueries(6, using="other") as captured_queries: + with self.assertNumQueries(4, using="other") as captured_queries: create_permissions(apps.get_app_config("auth"), verbosity=0, using="other") self.assertIn("INSERT INTO", captured_queries[-1]["sql"].upper()) self.assertGreater(Permission.objects.using("other").count(), 0) |
