summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2025-03-24 21:18:58 -0400
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-25 12:02:14 +0100
commitfecca298a2c6de22b054eaffeb4368b1167c7fd5 (patch)
treebba2eda57f8735eec1bae3d1e65c47b44a5efdc3 /tests/postgres_tests/test_array.py
parent7164f080474ef0213d1d6e625db647c45c36a5fb (diff)
Fixed #36276 -- Omitted size=None from ArrayField.deconstruct().
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index 9ad4ec16e9..745ae6090a 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -923,6 +923,7 @@ class TestMigrations(TransactionTestCase):
def test_deconstruct(self):
field = ArrayField(models.IntegerField())
name, path, args, kwargs = field.deconstruct()
+ self.assertEqual(kwargs.keys(), {"base_field"})
new = ArrayField(*args, **kwargs)
self.assertEqual(type(new.base_field), type(field.base_field))
self.assertIsNot(new.base_field, field.base_field)