tests: protocol ops, added --pull and --pull --stream clone tests
This commit is contained in:
parent
4cfd4ac542
commit
50b4956860
1 changed files with 14 additions and 0 deletions
|
|
@ -54,6 +54,20 @@ class TestVCSOperations(object):
|
|||
'hg clone', clone_url, tmpdir.strpath)
|
||||
_check_proper_clone(stdout, stderr, 'hg')
|
||||
|
||||
def test_clone_hg_repo_by_admin_pull_protocol(self, rc_web_server, tmpdir):
|
||||
clone_url = rc_web_server.repo_clone_url(HG_REPO)
|
||||
stdout, stderr = Command('/tmp').execute(
|
||||
'hg clone --pull', clone_url, tmpdir.strpath)
|
||||
_check_proper_clone(stdout, stderr, 'hg')
|
||||
|
||||
def test_clone_hg_repo_by_admin_pull_stream_protocol(self, rc_web_server, tmpdir):
|
||||
clone_url = rc_web_server.repo_clone_url(HG_REPO)
|
||||
stdout, stderr = Command('/tmp').execute(
|
||||
'hg clone --pull --stream', clone_url, tmpdir.strpath)
|
||||
assert '225 files to transfer, 1.04 MB of data' in stdout
|
||||
assert 'transferred 1.04 MB' in stdout
|
||||
assert '114 files updated,' in stdout
|
||||
|
||||
def test_clone_git_repo_by_admin(self, rc_web_server, tmpdir):
|
||||
clone_url = rc_web_server.repo_clone_url(GIT_REPO)
|
||||
cmd = Command('/tmp')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue