diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-28 15:15:14 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-28 15:15:14 +0100 |
commit | 4712c619ed6a2ce54b781fe404fedc269b77e5dd (patch) | |
tree | 01fd034949870e2c7a0ce6ff0367fa0d954caa3c /test/git/test_remote.py | |
parent | dc518251eb64c3ef90502697a7e08abe3f8310b2 (diff) | |
download | gitpython-4712c619ed6a2ce54b781fe404fedc269b77e5dd.tar.gz |
Fixed bug when listing remotes - it was based on references which is incorrect as it cannot always work
Diffstat (limited to 'test/git/test_remote.py')
-rw-r--r-- | test/git/test_remote.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/git/test_remote.py b/test/git/test_remote.py index 6f43e163..152ef5ab 100644 --- a/test/git/test_remote.py +++ b/test/git/test_remote.py @@ -122,8 +122,6 @@ class TestRemote(TestBase): res = fetch_and_test(remote, tags=True) self.failUnlessRaises(IndexError, get_info, res, remote, str(rtag)) - self.fail("Test fetch with true remote side - plenty of possible output is ommitted right now") - def _test_push_and_pull(self,remote, rw_repo, remote_repo): # push our changes lhead = rw_repo.head @@ -151,9 +149,10 @@ class TestRemote(TestBase): remote.pull('master') @with_rw_and_rw_remote_repo('0.1.6') - def test_base(self, rw_repo, remote_repo): + def test_base(self, rw_repo, remote_repo, damon_handle): num_remotes = 0 remote_set = set() + for remote in rw_repo.remotes: num_remotes += 1 assert remote == remote @@ -221,6 +220,7 @@ class TestRemote(TestBase): arg_list = (new_name, "git@server:hello.git") remote = Remote.create(bare_rw_repo, *arg_list ) assert remote.name == "test_new_one" + assert remote in bare_rw_repo.remotes # create same one again self.failUnlessRaises(GitCommandError, Remote.create, bare_rw_repo, *arg_list) |