mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #27135 -- Made index introspection return Index.suffix.
This commit is contained in:
parent
a7214f0e84
commit
b008f7cc56
7 changed files with 22 additions and 9 deletions
|
|
@ -1,10 +1,13 @@
|
|||
from django.db import models
|
||||
from django.test import TestCase
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from .models import Book
|
||||
|
||||
|
||||
class IndexesTests(TestCase):
|
||||
class IndexesTests(SimpleTestCase):
|
||||
|
||||
def test_suffix(self):
|
||||
self.assertEqual(models.Index.suffix, 'idx')
|
||||
|
||||
def test_repr(self):
|
||||
index = models.Index(fields=['title'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue