예제 #1
0
 def test_pygit2_check_credentials__no_keychain(self, mock_pygit2_credentials):
     """
     TestPygit2Utils:test_pygit2_check_credentials_no_keychain: Check for missing credentials support
     """
     mock_pygit2_credentials.return_value = None
     result = pygit2_utils.pygit2_check_credentials()
     self.assertFalse(result)
예제 #2
0
 def test_pygit2_check_credentials__have_keychain(self, mock_pygit2_credentials):
     """
     TestPygit2Utils:test_pygit2_check_credentials_keychain: Check for successful credentials support
     """
     mock_pygit2_credentials.KeypairFromAgent = ""
     result = pygit2_utils.pygit2_check_credentials()
     self.assertTrue(result)