Let the project's settings pick loop-claude's models

This commit is contained in:
2026-09-24 21:54:17 +02:00
parent 38169cfc41
commit 08cfc6a833
2 changed files with 18 additions and 6 deletions
+10
View File
@@ -66,6 +66,16 @@ class WorkerArgs(unittest.TestCase):
self.assertNotIn("--name", args)
self.assertNotIn("paint the fence", args[1])
def test_the_project_settings_pick_the_model_unless_the_environment_names_one(self):
os.environ.pop("WORKER_MODEL", None)
self.assertNotIn("--model", loop.worker_args("t", "n", SESSION_ID, resuming=False))
os.environ["WORKER_MODEL"] = "claude-fable-5-1"
try:
args = loop.worker_args("t", "n", SESSION_ID, resuming=False)
finally:
del os.environ["WORKER_MODEL"]
self.assertEqual(args[args.index("--model") + 1], "claude-fable-5-1")
class JudgePrompt(unittest.TestCase):
def test_hands_the_judge_the_tail_of_a_long_transcript(self):