diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-02-21 10:12:11 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-02-21 10:14:59 +0100 |
commit | e0acb8371bb2b68c2bda04db7cb2746ba3f9da86 (patch) | |
tree | dad907401197e27fee983e420cc780f48cd6a463 /git/test/test_git.py | |
parent | bfcdf2bef08f17b4726b67f06c84be3bfe2c39b8 (diff) | |
download | gitpython-e0acb8371bb2b68c2bda04db7cb2746ba3f9da86.tar.gz |
Added 'insert_kwargs_after' flag for consumption by _call_process.
While at it, all other invocations of .git in remote.py were reviewed
Fixes #262
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r-- | git/test/test_git.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py index 8087bc45..ef694755 100644 --- a/git/test/test_git.py +++ b/git/test/test_git.py @@ -155,6 +155,10 @@ class TestGit(TestBase): def test_change_to_transform_kwargs_does_not_break_command_options(self): self.git.log(n=1) + def test_insert_after_kwarg_raises(self): + # This isn't a complete add command, which doesn't matter here + self.failUnlessRaises(ValueError, self.git.remote, 'add', insert_kwargs_after='foo') + def test_env_vars_passed_to_git(self): editor = 'non_existant_editor' with mock.patch.dict('os.environ', {'GIT_EDITOR': editor}): |