Beispiel #1
0
 def test_get_git_repo_dir_invalid(self):
     pwd = os.getcwd()
     os.chdir('/tmp')
     assert get_git_repo_dir() is None
     os.chdir(pwd)
Beispiel #2
0
 def test_get_git_repo_dir_invalid(self):
     pwd = os.getcwd()
     os.chdir('/tmp')
     assert get_git_repo_dir() is None
     os.chdir(pwd)
Beispiel #3
0
 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'))
Beispiel #4
0
 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'))