From fb42d0247136249ea81962474e9a6a2faf1755f1 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Fri, 25 Aug 2017 23:54:36 +0200 Subject: Refs #25809 -- Omitted pages_per_range from BrinIndex.deconstruct() if it's None. --- tests/postgres_tests/test_indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/postgres_tests') diff --git a/tests/postgres_tests/test_indexes.py b/tests/postgres_tests/test_indexes.py index d866a8b869..ae4895a03e 100644 --- a/tests/postgres_tests/test_indexes.py +++ b/tests/postgres_tests/test_indexes.py @@ -33,7 +33,7 @@ class BrinIndexTests(PostgreSQLTestCase): path, args, kwargs = index.deconstruct() self.assertEqual(path, 'django.contrib.postgres.indexes.BrinIndex') self.assertEqual(args, ()) - self.assertEqual(kwargs, {'fields': ['title'], 'name': 'test_title_brin', 'pages_per_range': None}) + self.assertEqual(kwargs, {'fields': ['title'], 'name': 'test_title_brin'}) def test_deconstruction_with_pages_per_range(self): index = BrinIndex(fields=['title'], name='test_title_brin', pages_per_range=16) -- cgit v1.3