Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitba4cbae

Browse files
committed
Split test_refresh into two tests
For when refreshing should succeed and when it should fail.
1 parent307f198 commitba4cbae

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-
deftest_refresh(self):
310-
# Test a bad git path refresh.
309+
deftest_refresh_bad_git_path(self):
311310
self.assertRaises(GitCommandNotFound,refresh,"yada")
312311

313-
# Test a good path refresh.
312+
deftest_refresh_good_git_path(self):
314313
which_cmd="where"ifos.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)

[8]ページ先頭

©2009-2025 Movatter.jp