diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-08-20 16:09:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-20 16:09:07 +0200 |
| commit | 4c85d94bc04b7c1d5d0af42c00dcea986d6ecbb2 (patch) | |
| tree | 02571233d1dda4da79b33e9e0f14818727677b4e /tests/utils_tests/test_lazyobject.py | |
| parent | 517d3bb4dd17e9c51690c98d747b86a0ed8b2fbf (diff) | |
Fixed utils_tests.test_lazyobject.SimpleLazyObjectPickleTestCase.
SimpleLazyObjectPickleTestCase executes database queries so it must
inherit from django.test.TestCase.
Diffstat (limited to 'tests/utils_tests/test_lazyobject.py')
| -rw-r--r-- | tests/utils_tests/test_lazyobject.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/utils_tests/test_lazyobject.py b/tests/utils_tests/test_lazyobject.py index 134ae77750..a95335413e 100644 --- a/tests/utils_tests/test_lazyobject.py +++ b/tests/utils_tests/test_lazyobject.py @@ -1,9 +1,10 @@ import copy import pickle import sys +import unittest import warnings -from unittest import TestCase +from django.test import TestCase from django.utils.functional import LazyObject, SimpleLazyObject, empty from .models import Category, CategoryInfo @@ -20,7 +21,7 @@ class Foo: return self.foo == other.foo -class LazyObjectTestCase(TestCase): +class LazyObjectTestCase(unittest.TestCase): def lazy_wrap(self, wrapped_object): """ Wrap the given object into a LazyObject |
