

def test_new_project_under_gitorious(git_worktree, git_server):
    git_server.create_repo('foo', review=False)
    manifest_url = git_server.manifest_url
    worktree_syncer = qisrc.sync.WorkTreeSyncer(git_worktree)
    worktree_syncer.configure_manifest(manifest_url)
    foo = git_worktree.get_git_project('foo')
    git_server.use_gitorious('foo')
    worktree_syncer.sync()
    foo = git_worktree.get_git_project('foo')
    assert (len(foo.remotes) == 1)
    assert (foo.default_remote.name == 'gitorious')

dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/test/test_qisrc_sync.py test_new_project_under_gitorious/original