Skip to content

Commit fb6f55b

Browse files
committed
Add new cache key function to test stubs
1 parent 6aebb98 commit fb6f55b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/unit/recorders.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ def __init__(self, path: pathlib.Path, checker: str) -> None:
4040
async def abs_path(self, rel_path: str | None = None) -> pathlib.Path | None:
4141
return self._path if (rel_path is None) else self._path / rel_path
4242

43+
async def cache_key_set(
44+
self, policy_keys: list[str], input_args: list[str] | None = None, checker: str | None = None
45+
) -> bool:
46+
return False
47+
4348
async def primary_path_is_binary(self) -> bool:
4449
return False
4550

tests/unit/test_checks_compare.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ def __init__(self, is_source: bool) -> None:
242242
self.success_calls: list[tuple[str, object]] = []
243243
self._is_source = is_source
244244

245+
async def cache_key_set(
246+
self, policy_keys: list[str], input_args: list[str] | None = None, checker: str | None = None
247+
) -> bool:
248+
return False
249+
245250
async def primary_path_is_source(self) -> bool:
246251
return self._is_source
247252

0 commit comments

Comments
 (0)