diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-05-03 14:28:08 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-05-04 14:24:07 +0100 |
commit | dac0e52f5aebcd99fdaf6e9f7df05a4597c17d43 (patch) | |
tree | 21c67eafc634babe51f3fa35c48b99d2c2e3de2f /morphlib/localrepocache_tests.py | |
parent | 223475d1059e15ee75366354ab1a88dfdf2afac0 (diff) | |
download | morph-dac0e52f5aebcd99fdaf6e9f7df05a4597c17d43.tar.gz |
Implement repo-alias expansion
Changed the delimieter between push and pull patterns to be #,
since = is reasonably frequent in URLs, and # should never be
necessary in git urls.
Oh my how many tests now fail.
Diffstat (limited to 'morphlib/localrepocache_tests.py')
-rw-r--r-- | morphlib/localrepocache_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/localrepocache_tests.py b/morphlib/localrepocache_tests.py index 5ee28a99..917de598 100644 --- a/morphlib/localrepocache_tests.py +++ b/morphlib/localrepocache_tests.py @@ -23,7 +23,7 @@ import morphlib class LocalRepoCacheTests(unittest.TestCase): def setUp(self): - aliases = ['upstream=git://example.com/%s=example.com:%s.git'] + aliases = ['upstream=git://example.com/%s#example.com:%s.git'] bundle_base_url = 'http://lorry.example.com/bundles/' self.reponame = 'upstream:reponame' self.repourl = 'git://example.com/reponame' @@ -82,7 +82,7 @@ class LocalRepoCacheTests(unittest.TestCase): self.assertEqual(self.lrc.pull_url(self.reponame), self.repourl) def test_expands_shortened_url_correctly_for_pushing(self): - self.assertEqual(self.lrc.push_url(self.reponame), self.repourl) + self.assertEqual(self.lrc.push_url(self.reponame), self.pushurl) def test_has_not_got_shortened_repo_initially(self): self.assertFalse(self.lrc.has_repo(self.reponame)) |