Show the headless hint as the object to merge into the models file

This commit was merged in pull request #68.
This commit is contained in:
2026-09-26 20:00:24 +02:00
parent 413aa2f638
commit a670bcee7b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class ProjectModel(unittest.TestCase):
with unittest.mock.patch("sys.stdin.isatty", return_value=False), self.assertRaises(SystemExit) as stopped:
loop.project_model("/srv/a")
self.assertEqual(stopped.exception.code, 2)
self.assertIn(f'add "srv/a": "<model>" to the JSON object in {saved}', sys.stderr.getvalue())
self.assertIn(f'merge {{"srv/a": "<model>"}} into {saved}', sys.stderr.getvalue())
self.assertFalse(saved.exists())
with unittest.mock.patch.dict(os.environ, {"LOOP_CLAUDE_JUDGE_MODEL": "j", "LOOP_CLAUDE_WORKER_MODEL": "w"}), unittest.mock.patch("sys.stdin.isatty", return_value=False):
self.assertEqual(loop.project_model("/srv/a"), "")