Skip to content

Commit 6fc830a

Browse files
committed
Test that return value of push is a list-like object
1 parent 70e4bb8 commit 6fc830a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: test/test_remote.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
fixture,
3131
GIT_DAEMON_PORT
3232
)
33-
from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS
33+
from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS, IterableList
3434
import os.path as osp
3535

3636

@@ -128,6 +128,9 @@ def _do_test_fetch_result(self, results, remote):
128128
# END for each info
129129

130130
def _do_test_push_result(self, results, remote):
131+
self.assertIsInstance(results, list)
132+
self.assertIsInstance(results, IterableList)
133+
131134
self.assertGreater(len(results), 0)
132135
self.assertIsInstance(results[0], PushInfo)
133136
for info in results:

0 commit comments

Comments
 (0)