File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ def test_method_missing_calls_execute(self, git):
13
13
self .git .version ()
14
14
assert_true (git .called )
15
15
# assert_equal(git.call_args, ((("%s version " % self.git_bin_base),), {}))
16
-
16
+
17
17
def test_it_transforms_kwargs_into_git_command_arguments (self ):
18
18
assert_equal (["-s" ], self .git .transform_kwargs (** {'s' : True }))
19
19
assert_equal (["-s5" ], self .git .transform_kwargs (** {'s' : 5 }))
20
20
21
21
assert_equal (["--max-count" ], self .git .transform_kwargs (** {'max_count' : True }))
22
22
assert_equal (["--max-count=5" ], self .git .transform_kwargs (** {'max_count' : 5 }))
23
-
23
+
24
24
assert_equal (["-s" , "-t" ], self .git .transform_kwargs (** {'s' : True , 't' : True }))
25
25
26
26
def test_it_executes_git_to_shell_and_returns_result (self ):
@@ -47,7 +47,7 @@ def test_it_returns_stderr_in_output(self):
47
47
48
48
def test_it_does_not_strip_output_when_using_with_raw_output (self ):
49
49
# Note: trailing newline
50
- assert_match (r"^git: 'this-does-not-exist' is not a git-command\. See 'git --help'\."
51
- + os .linesep ,
50
+ assert_match (r"^git: 'this-does-not-exist' is not a git-command" \
51
+ r"(\. See 'git --help'\.)?" + os .linesep ,
52
52
self .git .this_does_not_exist (with_stderr = True ,
53
53
with_raw_output = True ))
You can’t perform that action at this time.
0 commit comments