Exemplo n.º 1
0
def test_ungit():
    '''
    Test orchestrate.unpack.ungit
    '''
    dst = tempfile.mkdtemp()
    src = util.git_repo(os.path.realpath('.'))
    unpack.ungit(src, dst, 'orchtest')
    print dst
Exemplo n.º 2
0
def test_git_repo():
    '''
    Test orchestrate.util.git_repo
    '''
    from orchestrate.util import git_repo
    mydir = os.path.dirname(os.path.realpath(__file__))
    got = git_repo(mydir)
    want = os.path.join(os.path.dirname(mydir),'.git')
    assert got == want, 'Got something unexpected: %s, wanted: %s' % (got, want)
Exemplo n.º 3
0
def test_git_repo():
    '''
    Test orchestrate.util.git_repo
    '''
    from orchestrate.util import git_repo
    mydir = os.path.dirname(os.path.realpath(__file__))
    got = git_repo(mydir)
    want = os.path.join(os.path.dirname(mydir), '.git')
    assert got == want, 'Got something unexpected: %s, wanted: %s' % (got,
                                                                      want)