Commit 523f60b0 authored by Michal Čihař's avatar Michal Čihař

Implement tests for Mercurial configure_remote

Issue #511
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent dbcc28b3
......@@ -229,10 +229,27 @@ class VCSHgTest(VCSGitTest):
return
def test_configure_remote(self):
return
self.repo.configure_remote('/pullurl', '/pushurl', 'branch')
self.assertEqual(
self.repo.get_config('paths', 'default'),
'/pullurl',
)
self.assertEqual(
self.repo.get_config('paths', 'default-push'),
'/pushurl',
)
def test_configure_remote_no_push(self):
return
self.repo.configure_remote('/pullurl', '', 'branch')
self.assertEqual(
self.repo.get_config('paths', 'default-push'),
'',
)
self.repo.configure_remote('/pullurl', '/push', 'branch')
self.assertEqual(
self.repo.get_config('paths', 'default-push'),
'/push',
)
def test_merge(self):
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment