コード例 #1
0
 def test_deconstruction(self):
     index = GinIndex(fields=['title'], name='test_title_gin')
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, 'django.contrib.postgres.indexes.GinIndex')
     self.assertEqual(args, ())
     self.assertEqual(kwargs, {
         'fields': ['title'],
         'name': 'test_title_gin'
     })
コード例 #2
0
ファイル: test_indexes.py プロジェクト: funkybob/django
 def test_deconstruction(self):
     index = GinIndex(
         fields=['title'],
         name='test_title_gin',
         fastupdate=True,
         gin_pending_list_limit=128,
     )
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, 'django.contrib.postgres.indexes.GinIndex')
     self.assertEqual(args, ())
     self.assertEqual(kwargs, {
         'fields': ['title'],
         'name': 'test_title_gin',
         'fastupdate': True,
         'gin_pending_list_limit': 128,
     })
コード例 #3
0
 def test_deconstruction(self):
     index = GinIndex(
         fields=['title'],
         name='test_title_gin',
         fastupdate=True,
         gin_pending_list_limit=128,
     )
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, 'django.contrib.postgres.indexes.GinIndex')
     self.assertEqual(args, ())
     self.assertEqual(kwargs, {
         'fields': ['title'],
         'name': 'test_title_gin',
         'fastupdate': True,
         'gin_pending_list_limit': 128,
     })
コード例 #4
0
 def test_deconstruction(self):
     index = GinIndex(
         fields=["title"],
         name="test_title_gin",
         fastupdate=True,
         gin_pending_list_limit=128,
     )
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, "django.contrib.postgres.indexes.GinIndex")
     self.assertEqual(args, ())
     self.assertEqual(
         kwargs,
         {
             "fields": ["title"],
             "name": "test_title_gin",
             "fastupdate": True,
             "gin_pending_list_limit": 128,
         },
     )
コード例 #5
0
ファイル: test_indexes.py プロジェクト: darkryder/django
 def test_deconstruction(self):
     index = GinIndex(fields=['title'], name='test_title_gin')
     path, args, kwargs = index.deconstruct()
     self.assertEqual(path, 'django.contrib.postgres.indexes.GinIndex')
     self.assertEqual(args, ())
     self.assertEqual(kwargs, {'fields': ['title'], 'name': 'test_title_gin'})