summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-12-03 10:21:43 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-01-14 13:49:53 +0200
commit78071fe1a79112dff5e2f119d2bbb9bddf3c3e7a (patch)
treeaeaae627b1aa96cc6df3cdac411b7aa563bd18b9 /tests
parentab8193f5e27e23b1ccede6dcb1173ec833b2d753 (diff)
downloadgit-buildpackage-78071fe1a79112dff5e2f119d2bbb9bddf3c3e7a.tar.gz
git-buildpackage-78071fe1a79112dff5e2f119d2bbb9bddf3c3e7a.tar.bz2
git-buildpackage-78071fe1a79112dff5e2f119d2bbb9bddf3c3e7a.zip
GitRepository/get_remote_repos: return URLs, too
In addition to the remote name, return remote URLs. Return value is now a dict with remote name as the key and a list of URLs as the value. The first value in the list is the effective fetch URL, the rest of the values are push URLs. NOTE! This patch is to be dropped, not going for upstream. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 0b005f5e..480f0c3b 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -577,8 +577,9 @@ def test_clone():
>>> clone.get_merge_branch('bar') # None if no merge branch exists
>>> clone.get_local_branches()
['bar', 'foo', 'master']
- >>> clone.get_remote_repos()
- ['origin']
+ >>> remotes = clone.get_remote_repos()
+ >>> {'origin': [repo_dir, repo_dir]} == remotes
+ True
>>> clone.has_remote_repo('origin')
True
>>> clone.has_branch('origin/master', remote=True)