Exemplo n.º 1
0
 def test_netrc(self):
     hostm = GitHostDriver(self.netrc_temp_dir)
     assert hostm.create_git_netrc("foobar", "foo")
     hostm = GitHostDriver(self.netrc_temp_dir)
     assert os.path.exists(os.path.join(self.netrc_temp_dir, ".netrc"))
     assert hostm.https_enabled
Exemplo n.º 2
0
 def test_ssh_git(self):
     hostm = GitHostDriver(self.ssh_temp_dir)
     assert hostm.ssh_enabled == hostm._check_for_ssh()
Exemplo n.º 3
0
 def test_ssh_git(self):
     hostm = GitHostDriver(self.ssh_temp_dir)
     assert hostm.ssh_enabled == False