diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-21 22:53:51 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-21 22:53:51 +0200 |
commit | 3c9f55dd8e6697ab2f9eaf384315abd4cbefad38 (patch) | |
tree | 06cc50a0ed54e375ce8ca182f3307949ca25b666 /test/git/test_remote.py | |
parent | bb509603e8303cd8ada7cfa1aaa626085b9bb6d6 (diff) | |
download | gitpython-3c9f55dd8e6697ab2f9eaf384315abd4cbefad38.tar.gz |
remote: Added fetch, pull, push methods to the interface to make these operations more convenient, like repo.remotes.origin.fetch
Diffstat (limited to 'test/git/test_remote.py')
-rw-r--r-- | test/git/test_remote.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/git/test_remote.py b/test/git/test_remote.py index 4cbb0b7b..aeb6b4af 100644 --- a/test/git/test_remote.py +++ b/test/git/test_remote.py @@ -32,7 +32,8 @@ class TestRemote(TestCase): # END for each ref # OPTIONS - for opt in ("url", "fetch"): + # cannot use 'fetch' key anymore as it is now a method + for opt in ("url", ): val = getattr(remote, opt) reader = remote.config_reader assert reader.get(opt) == val @@ -61,8 +62,10 @@ class TestRemote(TestCase): assert remote.rename(prev_name).name == prev_name # END for each rename ( back to prev_name ) + remote.fetch() + self.failUnlessRaises(GitCommandError, remote.pull) remote.update() - + self.fail("test push once there is a test-repo") # END for each remote assert num_remotes assert num_remotes == len(remote_set) |