Skip to content

Commit ba4cbae

Browse files
committed
Split test_refresh into two tests
For when refreshing should succeed and when it should fail.
1 parent 307f198 commit ba4cbae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_git.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,10 @@ def test_cmd_override(self):
306306
):
307307
self.assertRaises(GitCommandNotFound, self.git.version)
308308

309-
def test_refresh(self):
310-
# Test a bad git path refresh.
309+
def test_refresh_bad_git_path(self):
311310
self.assertRaises(GitCommandNotFound, refresh, "yada")
312311

313-
# Test a good path refresh.
312+
def test_refresh_good_git_path(self):
314313
which_cmd = "where" if os.name == "nt" else "command -v"
315314
path = os.popen("{0} git".format(which_cmd)).read().strip().split("\n")[0]
316315
refresh(path)

0 commit comments

Comments
 (0)