Exemplo n.º 1
0
 def test_get_code_dir(self):
     url = "[email protected]:Foo/BAR.git"
     expect = os.path.expanduser('~/code/BAR')
     eq_(expect, _get_code_dir_from_url(url))
Exemplo n.º 2
0
 def test_get_code_dir(self):
     url = "[email protected]:Foo/BAR.git"
     expect = os.path.expanduser('~/code/BAR')
     eq_(expect, _get_code_dir_from_url(url))
Exemplo n.º 3
0
def mock_git_command(url):
    dir_ = _get_code_dir_from_url(url)
    os.mkdir(dir_)
    return dir_
Exemplo n.º 4
0
def mock_git_command(url):
    dir_ = _get_code_dir_from_url(url)
    os.mkdir(dir_)
    return dir_