Fixed #30295 -- Fixed max_lengths.tests.MaxLengthORMTests when run in isolation.

This commit is contained in:
sage 2019-03-28 16:18:30 +07:00 committed by Mariusz Felisiak
parent e449c3a832
commit 5a92bb0725
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import unittest import unittest
from django.test import TestCase
from .models import PersonWithCustomMaxLengths, PersonWithDefaultMaxLengths from .models import PersonWithCustomMaxLengths, PersonWithDefaultMaxLengths
@ -21,7 +23,7 @@ class MaxLengthArgumentsTests(unittest.TestCase):
self.verify_max_length(PersonWithCustomMaxLengths, 'avatar', 250) self.verify_max_length(PersonWithCustomMaxLengths, 'avatar', 250)
class MaxLengthORMTests(unittest.TestCase): class MaxLengthORMTests(TestCase):
def test_custom_max_lengths(self): def test_custom_max_lengths(self):
args = { args = {