Пример #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
Пример #2
0
 def test_ssh_git(self):
     hostm = GitHostDriver(self.ssh_temp_dir)
     assert hostm.ssh_enabled == hostm._check_for_ssh()
Пример #3
0
 def test_ssh_git(self):
     hostm = GitHostDriver(self.ssh_temp_dir)
     assert hostm.ssh_enabled == False