Answer stability round 1: 0 🔴, 4 🟡; test that rule-hook runs git guarded and that reading-cost lists the checkout from a subfolder

This commit is contained in:
2026-10-21 20:05:36 +02:00
parent 3ae89c3acf
commit f391e52ac3
2 changed files with 21 additions and 1 deletions
+5
View File
@@ -18,6 +18,7 @@ from test_env import isolated_env
from model_routing import ladder
from rule_hook.override_log import LogLine, parsed_entry, this_chunks
from rule_hook.reviewer_rung import reviewer_breaches
from rule_hook.git import git as rule_hook_git
from model_routing.ladder import Rung
from shell_command import simple_commands
@@ -288,6 +289,10 @@ class Hook(unittest.TestCase):
git(self.repo, "commit", "-q", "--allow-empty", "-m", "base")
git(self.repo, "checkout", "-q", "-b", "chunk")
def test_runs_git_guarded(self):
git(self.repo, "config", "core.fsmonitor", "/bin/false")
self.assertEqual(rule_hook_git(self.repo, "config", "core.fsmonitor"), "false")
def listed(self) -> str:
return subprocess.run([str(HOOK), "overrides"], capture_output=True, check=True, cwd=self.repo, env=isolated_env(), text=True).stdout