File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -607,6 +607,18 @@ def _make_alias(ex):
607607 out , _ = p .communicate ()
608608 self .assertEqual (1 , p .returncode )
609609
610+ @per_available_shell ()
611+ def test_find_executable_config_override (self , shell ):
612+ """Test the shell plugin returns correct exec override from settings."""
613+ config .override ("default_shell" , shell )
614+ override_attr = "plugins.shell.{}.executable_fullpath" .format (shell )
615+ cls = type (create_shell (shell ))
616+ with tempfile .TemporaryDirectory () as td :
617+ exe_path = os .path .join (td , cls .executable_name ())
618+ with open (exe_path , 'w' ):
619+ config .override (override_attr , exe_path )
620+ assert cls .find_executable (cls .executable_name ()) == exe_path
621+
610622
611623if __name__ == '__main__' :
612624 unittest .main ()
You can’t perform that action at this time.
0 commit comments