Skip to content

Commit 221f3d3

Browse files
committed
Remove unused imports
1 parent 8da6634 commit 221f3d3

File tree

1 file changed

+2
-36
lines changed

1 file changed

+2
-36
lines changed

tests/test_djangocache.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,30 @@
33

44
# Unit tests for cache framework
55
# Uses whatever cache backend is set in the test settings file.
6-
import copy
7-
import io
86
import os
97
import pickle
10-
import re
118
import shutil
12-
import sys
139
import tempfile
14-
import threading
1510
import time
16-
import unittest
17-
import warnings
18-
from pathlib import Path
19-
from unittest import mock, skipIf
11+
from unittest import mock
2012

2113
from django.conf import settings
22-
from django.core import management, signals
2314
from django.core.cache import (
24-
DEFAULT_CACHE_ALIAS,
2515
CacheKeyWarning,
26-
InvalidCacheKey,
2716
cache,
2817
caches,
2918
)
30-
from django.core.cache.utils import make_template_fragment_key
31-
from django.db import close_old_connections, connection, connections
32-
from django.http import (
33-
HttpRequest,
34-
HttpResponse,
35-
HttpResponseNotModified,
36-
StreamingHttpResponse,
37-
)
19+
from django.http import HttpResponse
3820
from django.middleware.cache import (
39-
CacheMiddleware,
4021
FetchFromCacheMiddleware,
4122
UpdateCacheMiddleware,
4223
)
43-
from django.middleware.csrf import CsrfViewMiddleware
44-
from django.template import engines
45-
from django.template.context_processors import csrf
46-
from django.template.response import TemplateResponse
4724
from django.test import (
4825
RequestFactory,
49-
SimpleTestCase,
5026
TestCase,
51-
TransactionTestCase,
5227
override_settings,
5328
)
5429
from django.test.signals import setting_changed
55-
from django.utils import timezone, translation
56-
from django.utils.cache import (
57-
get_cache_key,
58-
learn_cache_key,
59-
patch_cache_control,
60-
patch_vary_headers,
61-
)
62-
from django.utils.encoding import force_text
63-
from django.views.decorators.cache import cache_page
6430

6531
################################################################################
6632
# Setup Django for models import.

0 commit comments

Comments
 (0)