Skip to content

Commit

Permalink
extend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
northernSage committed Apr 13, 2024
1 parent 8697892 commit ecdbb92
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/test_file_system_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,21 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, hash_method=hashlib.sha256, **kwargs)


class CustomDefaultHashingMethodCache(FileSystemCache):
_default_hash_method = hashlib.sha256

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)


@pytest.fixture(
autouse=True,
params=[FileSystemCache, CustomSerializerCache, CustomHashingMethodCache],
params=[
FileSystemCache,
CustomSerializerCache,
CustomHashingMethodCache,
CustomDefaultHashingMethodCache,
],
)
def cache_factory(request, tmpdir):
def _factory(self, *args, **kwargs):
Expand Down

0 comments on commit ecdbb92

Please sign in to comment.