Answer principles round 2: 0 🔴, 1 🟡; main parses and checks settings.json, so cleaned takes a dict and never raises

This commit is contained in:
2026-10-21 22:14:24 +02:00
parent d08a128d0f
commit b7261987ad
3 changed files with 23 additions and 24 deletions
+3 -2
View File
@@ -17,8 +17,9 @@ class Settings(unittest.TestCase):
# The index, not the working file: the working file holds this machine's model in Claude Code's key order.
stored = git("show", ":settings.json", cwd=str(ROOT))
self.assertIsInstance(stored, str, stored)
self.assertNotIn("model", json.loads(stored))
self.assertEqual(stored, cleaned(stored), f"commit settings.json with the filter on: {INSTALL}")
fix = f"commit settings.json with the filter on: {INSTALL}"
self.assertNotIn("model", json.loads(stored), fix)
self.assertEqual(stored, cleaned(json.loads(stored)), fix)
def test_the_readme_installs_the_filter_git_attributes_names_for_the_root_settings_only(self):
self.assertEqual("/settings.json filter=settings\n", (ROOT / ".gitattributes").read_text(encoding="utf-8"))