@@ -315,6 +315,7 @@ def test_cmd_override(self):
315315self .assertRaises (GitCommandNotFound ,self .git .version )
316316
317317def test_refresh_bad_absolute_git_path (self ):
318+ """Bad absolute path arg is reported and not set."""
318319absolute_path = str (Path ("yada" ).absolute ())
319320expected_pattern = rf"\n[ \t]*cmdline:{ re .escape (absolute_path )} \Z"
320321
@@ -324,6 +325,7 @@ def test_refresh_bad_absolute_git_path(self):
324325self .assertEqual (self .git .GIT_PYTHON_GIT_EXECUTABLE ,old_git_executable )
325326
326327def test_refresh_bad_relative_git_path (self ):
328+ """Bad relative path arg is resolved to absolute path and reported, not set."""
327329absolute_path = str (Path ("yada" ).absolute ())
328330expected_pattern = rf"\n[ \t]*cmdline:{ re .escape (absolute_path )} \Z"
329331
@@ -333,13 +335,15 @@ def test_refresh_bad_relative_git_path(self):
333335self .assertEqual (self .git .GIT_PYTHON_GIT_EXECUTABLE ,old_git_executable )
334336
335337def test_refresh_good_absolute_git_path (self ):
338+ """Good absolute path arg is set."""
336339absolute_path = shutil .which ("git" )
337340
338341with _rollback_refresh ():
339342refresh (absolute_path )
340343self .assertEqual (self .git .GIT_PYTHON_GIT_EXECUTABLE ,absolute_path )
341344
342345def test_refresh_good_relative_git_path (self ):
346+ """Good relative path arg is resolved to absolute path and set."""
343347absolute_path = shutil .which ("git" )
344348dirname ,basename = osp .split (absolute_path )
345349