1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #25809 -- Omitted pages_per_range from BrinIndex.deconstruct() if it's None.

This commit is contained in:
Mads Jensen
2017-08-25 23:54:36 +02:00
committed by Tim Graham
parent 3c0b2b80ed
commit fb42d02471
3 changed files with 6 additions and 2 deletions

View File

@@ -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)