@@ -136,7 +136,7 @@ def test_is_llm_backend_subclass(self):
136136class TestClaudeCLIBackend :
137137 def test_subprocess_args_format (self ):
138138 """Claude CLI format: subprocess args contain expected flags and values."""
139- backend = ClaudeCLIBackend (model = "opus" )
139+ backend = ClaudeCLIBackend (model = "opus" , command = "/usr/bin/claude" )
140140
141141 with patch ("netlab.autoresearch.backend.subprocess.run" ) as mock_run :
142142 mock_run .return_value .returncode = 0
@@ -162,7 +162,7 @@ def test_subprocess_args_format(self):
162162
163163 def test_subprocess_no_system (self ):
164164 """Claude CLI omits --system-prompt when system is empty."""
165- backend = ClaudeCLIBackend ()
165+ backend = ClaudeCLIBackend (command = "/usr/bin/claude" )
166166
167167 with patch ("netlab.autoresearch.backend.subprocess.run" ) as mock_run :
168168 mock_run .return_value .returncode = 0
@@ -176,7 +176,7 @@ def test_subprocess_no_system(self):
176176
177177 def test_subprocess_failure_raises (self ):
178178 """Claude CLI raises RuntimeError on non-zero exit code."""
179- backend = ClaudeCLIBackend ()
179+ backend = ClaudeCLIBackend (command = "/usr/bin/claude" )
180180
181181 with patch ("netlab.autoresearch.backend.subprocess.run" ) as mock_run :
182182 mock_run .return_value .returncode = 1
@@ -207,7 +207,7 @@ def test_is_llm_backend_subclass(self):
207207class TestCodexCLIBackend :
208208 def test_subprocess_args_format (self , tmp_path ):
209209 """Codex CLI format: subprocess args contain expected flags and values."""
210- backend = CodexCLIBackend (model = "o4-mini" )
210+ backend = CodexCLIBackend (model = "o4-mini" , command = "/usr/bin/codex" )
211211
212212 with (
213213 patch ("netlab.autoresearch.backend.subprocess.run" ) as mock_run ,
@@ -242,7 +242,7 @@ def test_subprocess_args_format(self, tmp_path):
242242
243243 def test_subprocess_no_system (self ):
244244 """Codex CLI: prompt without system instructions does not prepend system text."""
245- backend = CodexCLIBackend ()
245+ backend = CodexCLIBackend (command = "/usr/bin/codex" )
246246
247247 with (
248248 patch ("netlab.autoresearch.backend.subprocess.run" ) as mock_run ,
@@ -261,7 +261,7 @@ def test_subprocess_no_system(self):
261261
262262 def test_subprocess_failure_raises (self ):
263263 """Codex CLI raises RuntimeError on non-zero exit code."""
264- backend = CodexCLIBackend ()
264+ backend = CodexCLIBackend (command = "/usr/bin/codex" )
265265
266266 with (
267267 patch ("netlab.autoresearch.backend.subprocess.run" ) as mock_run ,
0 commit comments