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

Fixed #27135 -- Made index introspection return Index.suffix.

This commit is contained in:
Tim Graham
2017-02-15 13:33:55 -05:00
parent a7214f0e84
commit b008f7cc56
7 changed files with 22 additions and 9 deletions

View File

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