diff options
| author | sage <laymonage@gmail.com> | 2019-03-28 16:18:30 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-03-28 12:05:57 -0400 |
| commit | 4a6d3f258048b8ab9c9a4e51da56c273a77d114c (patch) | |
| tree | 0d6af98f16e5153514afa3a97e7e31f2fcc7c5f1 /tests | |
| parent | c910053a09b1831ae80ea94949ac054ac435a9ca (diff) | |
[2.2.x] Fixed #30295 -- Fixed max_lengths.tests.MaxLengthORMTests when run in isolation.
Backport of 5a92bb0725e07068b260364ef66466f126000b0b from master.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/max_lengths/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/max_lengths/tests.py b/tests/max_lengths/tests.py index fb81a7f473..dfea552fad 100644 --- a/tests/max_lengths/tests.py +++ b/tests/max_lengths/tests.py @@ -1,5 +1,7 @@ import unittest +from django.test import TestCase + from .models import PersonWithCustomMaxLengths, PersonWithDefaultMaxLengths @@ -21,7 +23,7 @@ class MaxLengthArgumentsTests(unittest.TestCase): self.verify_max_length(PersonWithCustomMaxLengths, 'avatar', 250) -class MaxLengthORMTests(unittest.TestCase): +class MaxLengthORMTests(TestCase): def test_custom_max_lengths(self): args = { |
