diff options
author | Sjoerd Langkemper <sjoerd-github@linuxonly.nl> | 2021-10-13 10:03:53 +0200 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-11-13 15:20:20 +0800 |
commit | 1481e7108fb206a95717c331478d4382cda51a6a (patch) | |
tree | 56b4351b23ff844a8c3fe11e75759176a6a1117b | |
parent | 3b82fa3018a21f0eeb76034ecb8fb4dedea9a966 (diff) | |
download | gitpython-1481e7108fb206a95717c331478d4382cda51a6a.tar.gz |
Test that return value of push is a list-like object
-rw-r--r-- | test/test_remote.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_remote.py b/test/test_remote.py index 088fdad5..fedfa207 100644 --- a/test/test_remote.py +++ b/test/test_remote.py @@ -30,7 +30,7 @@ from test.lib import ( fixture, GIT_DAEMON_PORT ) -from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS +from git.util import rmtree, HIDE_WINDOWS_FREEZE_ERRORS, IterableList import os.path as osp @@ -128,6 +128,9 @@ class TestRemote(TestBase): # END for each info def _do_test_push_result(self, results, remote): + self.assertIsInstance(results, list) + self.assertIsInstance(results, IterableList) + self.assertGreater(len(results), 0) self.assertIsInstance(results[0], PushInfo) for info in results: |