Skip to content

Commit

Permalink
Format tests with black.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkem committed Aug 18, 2024
1 parent 237ad80 commit f2ccaca
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class CacheTestMixin:

Cache = None

def test_defaults(self):
Expand Down
1 change: 0 additions & 1 deletion tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@


class CacheTest(unittest.TestCase, CacheTestMixin):

Cache = cachetools.Cache
1 change: 0 additions & 1 deletion tests/test_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class LRUCacheTest(unittest.TestCase, CacheTestMixin):

Cache = FIFOCache

def test_fifo(self):
Expand Down
1 change: 0 additions & 1 deletion tests/test_lfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class LFUCacheTest(unittest.TestCase, CacheTestMixin):

Cache = LFUCache

def test_lfu(self):
Expand Down
1 change: 0 additions & 1 deletion tests/test_lru.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class LRUCacheTest(unittest.TestCase, CacheTestMixin):

Cache = LRUCache

def test_lru(self):
Expand Down
2 changes: 0 additions & 2 deletions tests/test_mru.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion tests/test_rr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class RRCacheTest(unittest.TestCase, CacheTestMixin):

Cache = RRCache

def test_rr(self):
Expand Down

0 comments on commit f2ccaca

Please sign in to comment.