@@ -40,7 +40,7 @@ def test_init_with_custom_binary(self):
4040 mock_config_manager .register_callback = Mock ()
4141 custom_binary = "/custom/path/pitrac_lm"
4242
43- manager = CalibrationManager (mock_config_manager , custom_binary )
43+ manager = CalibrationManager (mock_config_manager , pitrac_binary = custom_binary )
4444
4545 assert manager .pitrac_binary == custom_binary
4646
@@ -206,7 +206,7 @@ def mock_config_manager(self):
206206
207207 def test_ball_location_command_single_mode (self , mock_config_manager ):
208208 """Test command building for ball location in single mode"""
209- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
209+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
210210
211211 config = mock_config_manager .get_config ()
212212 system_mode = config .get ("system" , {}).get ("mode" , "single" )
@@ -233,7 +233,7 @@ def test_ball_location_command_dual_mode(self):
233233 }
234234 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
235235
236- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
236+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
237237
238238 config = mock_config_manager .get_config ()
239239 system_mode = config .get ("system" , {}).get ("mode" , "single" )
@@ -362,7 +362,7 @@ async def test_capture_still_image_success(self):
362362 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }}
363363 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
364364
365- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
365+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
366366
367367 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
368368 mock_process = AsyncMock ()
@@ -387,7 +387,7 @@ async def test_capture_still_image_file_not_created(self):
387387 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }}
388388 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
389389
390- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
390+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
391391
392392 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
393393 mock_process = AsyncMock ()
@@ -410,7 +410,7 @@ async def test_capture_still_image_process_error(self):
410410 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }}
411411 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
412412
413- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
413+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
414414
415415 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
416416 mock_subprocess .side_effect = Exception ("Camera not found" )
@@ -448,7 +448,7 @@ async def test_log_file_creation_during_calibration(self):
448448 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }, "calibration" : {}}
449449 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
450450
451- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
451+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
452452
453453 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
454454 mock_process = AsyncMock ()
@@ -493,7 +493,7 @@ async def test_check_ball_location_timeout(self):
493493 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }, "calibration" : {}}
494494 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
495495
496- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
496+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
497497
498498 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
499499 mock_process = AsyncMock ()
@@ -517,7 +517,7 @@ async def test_calibration_process_failure(self):
517517 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }, "calibration" : {}}
518518 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
519519
520- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
520+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
521521
522522 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
523523 mock_process = AsyncMock ()
@@ -634,7 +634,7 @@ async def test_auto_calibration_success_workflow(self):
634634 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
635635 mock_config_manager .reload = Mock ()
636636
637- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
637+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
638638
639639 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
640640 mock_process = AsyncMock ()
@@ -680,7 +680,7 @@ async def test_manual_calibration_success_workflow(self):
680680 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
681681 mock_config_manager .reload = Mock ()
682682
683- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
683+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
684684
685685 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
686686 mock_process = AsyncMock ()
@@ -710,7 +710,7 @@ async def test_calibration_failure_no_results(self):
710710 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }, "calibration" : {}}
711711 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
712712
713- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
713+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
714714
715715 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
716716 mock_process = AsyncMock ()
@@ -753,7 +753,7 @@ async def test_ball_location_detection_success(self):
753753 }
754754 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
755755
756- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
756+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
757757
758758 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
759759 mock_process = AsyncMock ()
@@ -778,7 +778,7 @@ async def test_still_image_capture_with_dual_mode(self):
778778 mock_config_manager .get_config .return_value = {"system" : {"mode" : "dual" }}
779779 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
780780
781- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
781+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
782782
783783 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
784784 mock_process = AsyncMock ()
@@ -813,7 +813,7 @@ async def test_full_calibration_workflow_success(self):
813813 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
814814 mock_config_manager .reload = Mock ()
815815
816- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
816+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
817817
818818 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
819819 mock_process = AsyncMock ()
@@ -860,7 +860,7 @@ async def test_calibration_workflow_with_failures(self):
860860 mock_config_manager .get_config .return_value = {"system" : {"mode" : "single" }, "calibration" : {}}
861861 mock_config_manager .generated_config_path = "/tmp/test_config.yaml"
862862
863- manager = CalibrationManager (mock_config_manager , "/test/pitrac_lm" )
863+ manager = CalibrationManager (mock_config_manager , pitrac_binary = "/test/pitrac_lm" )
864864
865865 with patch ("calibration_manager.asyncio.create_subprocess_exec" ) as mock_subprocess :
866866 mock_process = AsyncMock ()
0 commit comments