Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(windows): define the missing sha256_file helper in the launcher guard

Martin Vogelfb54f54e6097
diff --git a/tests/windows/test_windows_launcher.py b/tests/windows/test_windows_launcher.py
index 13d4909ea..6179b8c65 100644
--- a/tests/windows/test_windows_launcher.py
+++ b/tests/windows/test_windows_launcher.py
@@ -80,6 +80,11 @@ class GuardFailure(Exception):
pass
+def sha256_file(path):
+ """SHA-256 hex digest of a file's contents (payload/launcher digest checks)."""
+ return hashlib.sha256(pathlib.Path(path).read_bytes()).hexdigest()
+
+
class PROCESSENTRY32W(ctypes.Structure):
_fields_ = [
("dwSize", wintypes.DWORD),