From e0acb8371bb2b68c2bda04db7cb2746ba3f9da86 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 21 Feb 2015 10:12:11 +0100 Subject: 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 --- git/test/test_git.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git/test/test_git.py') 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}): -- cgit v1.2.1