@@ -399,12 +399,17 @@ def test_assertion_error_when_no_controller_found(self) -> None:
399399
400400 def test_controller_args_default_value (self ) -> None :
401401 """Test that controller_args is set correctly with default value."""
402- settings = AskUiControllerSettings ()
402+ settings = AskUiControllerSettings (
403+ component_registry_file = '/dummy'
404+ )
403405 assert settings .controller_args == "--showOverlay true"
404406
405407 def test_controller_args_constructor (self ) -> None :
406408 """Test that controller_args is set correctly with constructor."""
407- settings = AskUiControllerSettings (controller_args = "--showOverlay false" )
409+ settings = AskUiControllerSettings (
410+ controller_args = "--showOverlay false" ,
411+ component_registry_file = '/dummy'
412+ )
408413 assert settings .controller_args == "--showOverlay false"
409414
410415 def test_controller_args_with_environment_variable (self ) -> None :
@@ -413,11 +418,10 @@ def test_controller_args_with_environment_variable(self) -> None:
413418 "os.environ" ,
414419 {
415420 "ASKUI_CONTROLLER_ARGS" : "--showOverlay false" ,
416- "ASKUI_COMPONENT_REGISTRY_FILE" : "dummy" ,
417421 },
418422 clear = True ,
419423 ):
420- settings = AskUiControllerSettings ()
424+ settings = AskUiControllerSettings (component_registry_file = '/dummy' )
421425 assert settings .controller_args == "--showOverlay false"
422426
423427 def test_controller_args_with_invalid_arg (self ) -> None :
0 commit comments