Thanks to visit codestin.com Credit goes to github.com
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
import os
8
import subprocess
9
import sys
10
+from tempfile import TemporaryFile
11
12
from git import (
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" not in git.call_args[1])
111
112
+ @raises(GitCommandError)
113
+ def test_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
def test_it_accepts_environment_variables(self):
118
filename = fixture_path("ls_tree_empty")
119
with open(filename, 'r') as fh:
0 commit comments