Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4043468

Browse files
committed
tests: add a test to ensure False is never passed to Git.execute
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent6e1be30 commit4043468

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎test/git/test_git.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@ def test_it_does_not_strip_output_when_using_with_raw_output(self):
5555
deftest_it_handles_large_input(self):
5656
output=self.git.execute(["cat","/bin/bash"])
5757
assert_true(len(output)>4096)# at least 4k
58+
59+
@patch(Git,'execute')
60+
deftest_it_ignores_false_kwargs(self,git):
61+
# this_should_not_be_ignored=False implies it *should* be ignored
62+
output=self.git.version(pass_this_kwarg=False )
63+
assert_true("pass_this_kwarg"notingit.call_args[1] )

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp