def test_get_git_repo_dir_invalid(self): pwd = os.getcwd() os.chdir('/tmp') assert get_git_repo_dir() is None os.chdir(pwd)
def test_get_git_repo_dir(self): assert os.path.isdir(get_git_repo_dir()) assert os.path.isdir(os.path.join(get_git_repo_dir(), b'.git'))
def test_get_git_repo_dir(self): assert os.path.isdir(get_git_repo_dir()) assert os.path.isdir(os.path.join(get_git_repo_dir(), '.git'))