1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

[1.11.x] Fixed #27135 -- Made index introspection return Index.suffix.

Backport of b008f7cc56 from master
This commit is contained in:
Tim Graham
2017-02-15 13:33:55 -05:00
parent 197a2cd487
commit 2f6cdc09c4
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'])