This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new fb6f55b7 Add new cache key function to test stubs
fb6f55b7 is described below

commit fb6f55b7c4419cd61651715bbd4409517b2a3800
Author: Alastair McFarlane <[email protected]>
AuthorDate: Mon Feb 16 10:56:09 2026 +0000

    Add new cache key function to test stubs
---
 tests/unit/recorders.py           | 5 +++++
 tests/unit/test_checks_compare.py | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/tests/unit/recorders.py b/tests/unit/recorders.py
index 47c772eb..b4633f5e 100644
--- a/tests/unit/recorders.py
+++ b/tests/unit/recorders.py
@@ -40,6 +40,11 @@ class RecorderStub(checks.Recorder):
     async def abs_path(self, rel_path: str | None = None) -> pathlib.Path | 
None:
         return self._path if (rel_path is None) else self._path / rel_path
 
+    async def cache_key_set(
+        self, policy_keys: list[str], input_args: list[str] | None = None, 
checker: str | None = None
+    ) -> bool:
+        return False
+
     async def primary_path_is_binary(self) -> bool:
         return False
 
diff --git a/tests/unit/test_checks_compare.py 
b/tests/unit/test_checks_compare.py
index 5a90a029..e90e3314 100644
--- a/tests/unit/test_checks_compare.py
+++ b/tests/unit/test_checks_compare.py
@@ -242,6 +242,11 @@ class RecorderStub(atr.tasks.checks.Recorder):
         self.success_calls: list[tuple[str, object]] = []
         self._is_source = is_source
 
+    async def cache_key_set(
+        self, policy_keys: list[str], input_args: list[str] | None = None, 
checker: str | None = None
+    ) -> bool:
+        return False
+
     async def primary_path_is_source(self) -> bool:
         return self._is_source
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to