aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cache.py3
-rw-r--r--tests/test_lfu.py3
-rw-r--r--tests/test_lru.py3
-rw-r--r--tests/test_method.py (renamed from tests/test_cachedmethod.py)2
-rw-r--r--tests/test_rr.py5
-rw-r--r--tests/test_ttl.py3
6 files changed, 12 insertions, 7 deletions
diff --git a/tests/test_cache.py b/tests/test_cache.py
index 433a733..3b78515 100644
--- a/tests/test_cache.py
+++ b/tests/test_cache.py
@@ -1,8 +1,9 @@
import unittest
-from . import CacheTestMixin
from cachetools import Cache
+from . import CacheTestMixin
+
class CacheTest(unittest.TestCase, CacheTestMixin):
diff --git a/tests/test_lfu.py b/tests/test_lfu.py
index 3b69647..1c4741b 100644
--- a/tests/test_lfu.py
+++ b/tests/test_lfu.py
@@ -1,8 +1,9 @@
import unittest
-from . import CacheTestMixin, DecoratorTestMixin
from cachetools import LFUCache, lfu_cache
+from . import CacheTestMixin, DecoratorTestMixin
+
class LFUCacheTest(unittest.TestCase, CacheTestMixin, DecoratorTestMixin):
diff --git a/tests/test_lru.py b/tests/test_lru.py
index f21170d..5eea036 100644
--- a/tests/test_lru.py
+++ b/tests/test_lru.py
@@ -1,8 +1,9 @@
import unittest
-from . import CacheTestMixin, DecoratorTestMixin
from cachetools import LRUCache, lru_cache
+from . import CacheTestMixin, DecoratorTestMixin
+
class LRUCacheTest(unittest.TestCase, CacheTestMixin, DecoratorTestMixin):
diff --git a/tests/test_cachedmethod.py b/tests/test_method.py
index 1440352..82337e0 100644
--- a/tests/test_cachedmethod.py
+++ b/tests/test_method.py
@@ -1,5 +1,5 @@
-import unittest
import operator
+import unittest
from cachetools import LRUCache, cachedmethod
diff --git a/tests/test_rr.py b/tests/test_rr.py
index 7af9863..b6d2f2c 100644
--- a/tests/test_rr.py
+++ b/tests/test_rr.py
@@ -1,9 +1,10 @@
-import unittest
import random
+import unittest
-from . import CacheTestMixin, DecoratorTestMixin
from cachetools import RRCache, rr_cache
+from . import CacheTestMixin, DecoratorTestMixin
+
class RRCacheTest(unittest.TestCase, CacheTestMixin, DecoratorTestMixin):
diff --git a/tests/test_ttl.py b/tests/test_ttl.py
index d562c1c..c6253c2 100644
--- a/tests/test_ttl.py
+++ b/tests/test_ttl.py
@@ -1,8 +1,9 @@
import unittest
-from . import CacheTestMixin, DecoratorTestMixin
from cachetools import TTLCache, ttl_cache
+from . import CacheTestMixin, DecoratorTestMixin
+
class Timer:
def __init__(self, auto=False):