def testChangeRemote(self):
"""Test that changed remotes in recipe are updated in the working copy"""
s1 = self.createGitScm({
'remote-bar' : 'http://bar.test/baz.git',
})
s2 = self.createGitScm({
'remote-bar' : 'http://bar.test/foo.git',
})
with tempfile.TemporaryDirectory() as workspace:
remotes = self.callAndGetRemotes(workspace, s1)
self.assertEqual(remotes, {
"origin" : self.repodir,
'bar' : 'http://bar.test/baz.git',
})
remotes = self.callAndGetRemotes(workspace, s2)
self.assertEqual(remotes, {
"origin" : self.repodir,
'bar' : 'http://bar.test/foo.git',
})
评论列表
文章目录