summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-09-28 15:44:55 +0200
committerGitHub <noreply@github.com>2017-09-28 15:44:55 +0200
commit2e482a20ab221cb6eca51f12f1bd29cda4eec484 (patch)
tree1e07af3b22ba20b59dadd4a5b8008a3217c40bb5 /git/test/test_git.py
parent58998fb2dd6a1cad5faffdc36ae536ee6b04e3d2 (diff)
parent2eb6cf0855232da2b8f37785677d1f58c8e86817 (diff)
downloadgitpython-2e482a20ab221cb6eca51f12f1bd29cda4eec484.tar.gz
Merge branch 'master' into master
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index 4c3afce9..0a0d7ef7 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -10,6 +10,7 @@ import sys
from git import (
Git,
+ refresh,
GitCommandError,
GitCommandNotFound,
Repo,
@@ -171,6 +172,14 @@ class TestGit(TestBase):
type(self.git).GIT_PYTHON_GIT_EXECUTABLE = prev_cmd
# END undo adjustment
+ def test_refresh(self):
+ # test a bad git path refresh
+ self.assertRaises(GitCommandNotFound, refresh, "yada")
+
+ # test a good path refresh
+ path = os.popen("which git").read().strip()
+ refresh(path)
+
def test_options_are_passed_to_git(self):
# This work because any command after git --version is ignored
git_version = self.git(version=True).NoOp()