8000 Split test_refresh into two tests · gitpython-developers/GitPython@ba4cbae · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 2 additions & 3 deletions
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)
0