We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a4819 commit e1d2f4bCopy full SHA for e1d2f4b
git/test/test_git.py
@@ -7,6 +7,7 @@
7
importos
8
importsubprocess
9
importsys
10
+fromtempfileimportTemporaryFile
11
12
fromgitimport (
13
Git,
@@ -108,6 +109,11 @@ def test_it_ignores_false_kwargs(self, git):
108
109
self.git.version(pass_this_kwarg=False)
110
assert_true("pass_this_kwarg"notingit.call_args[1])
111
112
+@raises(GitCommandError)
113
+deftest_it_raises_proper_exception_with_output_stream(self):
114
+tmp_file=TemporaryFile()
115
+self.git.checkout('non-existent-branch', output_stream=tmp_file)
116
+
117
deftest_it_accepts_environment_variables(self):
118
filename=fixture_path("ls_tree_empty")
119
withopen(filename, 'r') asfh:
0 commit comments