mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[2.2.x] Fixed #30295 -- Fixed max_lengths.tests.MaxLengthORMTests when run in isolation.
Backport of 5a92bb0725e07068b260364ef66466f126000b0b from master.
This commit is contained in:
parent
c910053a09
commit
4a6d3f2580
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user