From f2ccacaa8e26572944bc2c7c87bdae9d8c0255b9 Mon Sep 17 00:00:00 2001 From: Thomas Kemmer Date: Sun, 18 Aug 2024 22:17:26 +0200 Subject: [PATCH] Format tests with black. --- tests/__init__.py | 1 - tests/test_cache.py | 1 - tests/test_fifo.py | 1 - tests/test_lfu.py | 1 - tests/test_lru.py | 1 - tests/test_mru.py | 2 -- tests/test_rr.py | 1 - 7 files changed, 8 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index f735161..ab8e51a 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,7 +2,6 @@ class CacheTestMixin: - Cache = None def test_defaults(self): diff --git a/tests/test_cache.py b/tests/test_cache.py index ef87877..afcb196 100644 --- a/tests/test_cache.py +++ b/tests/test_cache.py @@ -6,5 +6,4 @@ class CacheTest(unittest.TestCase, CacheTestMixin): - Cache = cachetools.Cache diff --git a/tests/test_fifo.py b/tests/test_fifo.py index 933af56..f1cb4bc 100644 --- a/tests/test_fifo.py +++ b/tests/test_fifo.py @@ -6,7 +6,6 @@ class LRUCacheTest(unittest.TestCase, CacheTestMixin): - Cache = FIFOCache def test_fifo(self): diff --git a/tests/test_lfu.py b/tests/test_lfu.py index 6679a88..c43ce4a 100644 --- a/tests/test_lfu.py +++ b/tests/test_lfu.py @@ -6,7 +6,6 @@ class LFUCacheTest(unittest.TestCase, CacheTestMixin): - Cache = LFUCache def test_lfu(self): diff --git a/tests/test_lru.py b/tests/test_lru.py index fe97803..7fdedf0 100644 --- a/tests/test_lru.py +++ b/tests/test_lru.py @@ -6,7 +6,6 @@ class LRUCacheTest(unittest.TestCase, CacheTestMixin): - Cache = LRUCache def test_lru(self): diff --git a/tests/test_mru.py b/tests/test_mru.py index 82c2ac3..af35ff2 100644 --- a/tests/test_mru.py +++ b/tests/test_mru.py @@ -7,12 +7,10 @@ class MRUCacheTest(unittest.TestCase, CacheTestMixin): - # TODO: method to create cache that can be overridden Cache = MRUCache def test_evict__writes_only(self): - with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") cache = MRUCache(maxsize=2) diff --git a/tests/test_rr.py b/tests/test_rr.py index 008978b..e454f7a 100644 --- a/tests/test_rr.py +++ b/tests/test_rr.py @@ -6,7 +6,6 @@ class RRCacheTest(unittest.TestCase, CacheTestMixin): - Cache = RRCache def test_rr(self):