def test_ungit(): ''' Test orchestrate.unpack.ungit ''' dst = tempfile.mkdtemp() src = util.git_repo(os.path.realpath('.')) unpack.ungit(src, dst, 'orchtest') print dst
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)
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)