diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-09-28 15:44:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 15:44:15 +0200 |
commit | 2eb6cf0855232da2b8f37785677d1f58c8e86817 (patch) | |
tree | ecb856bea6ed63e9c2baf8365a4e0a9030b0b3a3 /git/test/test_git.py | |
parent | 2af601d5800a39ab04e9fe6cf22ef7b917ab5d67 (diff) | |
parent | a56136f9cb48a17ae15b59ae0f3f99d9303b1cb1 (diff) | |
download | gitpython-2eb6cf0855232da2b8f37785677d1f58c8e86817.tar.gz |
Merge pull request #640 from njalerikson/adding_setup_for_git_executable
Adding setup for git executable
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r-- | git/test/test_git.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py index 3c8b6f82..00577e33 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, @@ -156,6 +157,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() |