Expect LOOP_CLAUDE_WORKER_MODEL
This commit is contained in:
@@ -83,9 +83,9 @@ class WorkerArgs(unittest.TestCase):
|
||||
|
||||
def test_the_project_settings_pick_the_model_unless_the_environment_names_one(self):
|
||||
with unittest.mock.patch.dict(os.environ):
|
||||
os.environ.pop("WORKER_MODEL", None)
|
||||
os.environ.pop("LOOP_CLAUDE_WORKER_MODEL", None)
|
||||
self.assertNotIn("--model", loop.worker_args("t", "n", SESSION_ID, resuming=False))
|
||||
with unittest.mock.patch.dict(os.environ, {"WORKER_MODEL": "claude-fable-5-1"}):
|
||||
with unittest.mock.patch.dict(os.environ, {"LOOP_CLAUDE_WORKER_MODEL": "claude-fable-5-1"}):
|
||||
args = loop.worker_args("t", "n", SESSION_ID, resuming=False)
|
||||
self.assertEqual(args[args.index("--model") + 1], "claude-fable-5-1")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user