mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #27135 -- Made index introspection return Index.suffix.
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user