Return the updated ~/.claude.json from mark_trusted #121

Manually merged
lilleman merged 3 commits from trust-returns-config into rebuild 2026-09-29 10:27:45 +02:00
Showing only changes of commit f4f996f124 - Show all commits
-1
View File
@@ -92,7 +92,6 @@ class MarkTrusted(unittest.TestCase):
self.assertEqual(formats.mark_trusted(config, ["/a", "/b", "/c"]), ({"other": 1, "projects": {"/a": {"hasTrustDialogAccepted": True}, "/b": {"hasTrustDialogAccepted": True, "kept": True}, "/c": {"hasTrustDialogAccepted": True}}}, ["/b", "/c"]))
self.assertEqual(json.dumps(config), handed)
self.assertEqual(formats.mark_trusted({}, ["/a"]), ({"projects": {"/a": {"hasTrustDialogAccepted": True}}}, ["/a"]))
self.assertEqual(formats.mark_trusted({"projects": {"/a": 1}}, ["/a"]), Failure('projects["/a"] is not an object'))
class Grounded(unittest.TestCase):