Esempio n. 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)
Esempio n. 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)
Esempio n. 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'))
Esempio n. 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'))