Answer principles round 1: 0 🔴, 3 🟡 (0 misread); hand the home folder, the clock and the output to larv-review's commands from their wiring

This commit is contained in:
2026-11-13 03:04:44 +01:00
parent 87d5023773
commit e6da7b0b9c
22 changed files with 155 additions and 131 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import unittest.mock
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from failure import Failure
from project_config.settings import held, load, ProjectConfig
from project_config.settings import held, load, ProjectConfig, SETTINGS
from test_env import isolated_env
TOOL = pathlib.Path(__file__).resolve().parents[1] / "project-config"
@@ -79,7 +79,7 @@ class LoadTest(ConfigCase):
self.assertEqual(found.paths["decisions"], folder / "docs" / "decisions.md")
self.assertEqual(found.paths["changelog"], self.checkout / "CHANGELOG.md")
self.assertEqual(found.paths["principles"], self.home / ".claude" / "principles")
self.assertEqual(len(found.paths), 9)
self.assertEqual(tuple(found.paths), SETTINGS)
def test_a_worktree_finds_the_main_checkouts_config_and_reads_its_own_files(self) -> None:
self.write("acme", CLIENT)
@@ -207,7 +207,7 @@ class ToolTest(ConfigCase):
everything = self.run_tool()
self.assertEqual((everything.returncode, everything.stderr), (0, ""))
self.assertEqual(everything.stdout.splitlines()[0], f"plan: {folder}/todo.md")
self.assertEqual(len(everything.stdout.splitlines()), 9)
self.assertEqual(tuple(line.split(": ")[0] for line in everything.stdout.splitlines()), SETTINGS)
(self.checkout / "src").mkdir()
one = self.run_tool("changelog", cwd=self.checkout / "src")
self.assertEqual((one.returncode, one.stdout), (0, f"{self.checkout}/CHANGELOG.md\n"))