diff -ur a/test/test_credentials.py b/test/test_credentials.py
--- a/test/test_credentials.py 2014-03-27 14:54:02.000000000 -0500
+++ b/test/test_credentials.py 2015-02-13 12:50:22.937313932 -0600
@@ -60,34 +60,36 @@
cred = Keypair(username, pubkey, privkey, passphrase)
self.assertEqual((username, pubkey, privkey, passphrase), cred.credential_tuple)
-class CredentialCallback(utils.RepoTestCase):
- def test_callback(self):
- def credentials_cb(url, username, allowed):
- self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT)
- raise Exception("I don't know the password")
-
- remote = self.repo.create_remote("github", "https://github.com/github/github")
- remote.credentials = credentials_cb
-
- self.assertRaises(Exception, remote.fetch)
-
- def test_bad_cred_type(self):
- def credentials_cb(url, username, allowed):
- self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT)
- return Keypair("git", "foo.pub", "foo", "sekkrit")
-
- remote = self.repo.create_remote("github", "https://github.com/github/github")
- remote.credentials = credentials_cb
-
- self.assertRaises(TypeError, remote.fetch)
-
-class CallableCredentialTest(utils.RepoTestCase):
-
- def test_user_pass(self):
- remote = self.repo.create_remote("bb", "https://bitbucket.org/libgit2/testgitrepository.git")
- remote.credentials = UserPass("libgit2", "libgit2")
-
- remote.fetch()
+# Skipped because koji builds have no network access
+#
+#class CredentialCallback(utils.RepoTestCase):
+# def test_callback(self):
+# def credentials_cb(url, username, allowed):
+# self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT)
+# raise Exception("I don't know the password")
+#
+# remote = self.repo.create_remote("github", "https://github.com/github/github")
+# remote.credentials = credentials_cb
+#
+# self.assertRaises(Exception, remote.fetch)
+#
+# def test_bad_cred_type(self):
+# def credentials_cb(url, username, allowed):
+# self.assertTrue(allowed & GIT_CREDTYPE_USERPASS_PLAINTEXT)
+# return Keypair("git", "foo.pub", "foo", "sekkrit")
+#
+# remote = self.repo.create_remote("github", "https://github.com/github/github")
+# remote.credentials = credentials_cb
+#
+# self.assertRaises(TypeError, remote.fetch)
+#
+#class CallableCredentialTest(utils.RepoTestCase):
+#
+# def test_user_pass(self):
+# remote = self.repo.create_remote("bb", "https://bitbucket.org/libgit2/testgitrepository.git")
+# remote.credentials = UserPass("libgit2", "libgit2")
+#
+# remote.fetch()
if __name__ == '__main__':
unittest.main()
diff -ur a/test/test_repository.py b/test/test_repository.py
--- a/test/test_repository.py 2014-03-27 14:54:02.000000000 -0500
+++ b/test/test_repository.py 2015-02-13 12:48:52.535406826 -0600
@@ -461,13 +461,15 @@
self.assertFalse(repo.is_empty)
self.assertEqual(repo.remotes[0].name, "custom_remote")
- def test_clone_with_credentials(self):
- credentials = pygit2.UserPass("libgit2", "libgit2")
- repo = clone_repository(
- "https://bitbucket.org/libgit2/testgitrepository.git",
- self._temp_dir, credentials=credentials)
-
- self.assertFalse(repo.is_empty)
+ # Skipped because koji builds have no network access
+ #
+ # def test_clone_with_credentials(self):
+ # credentials = pygit2.UserPass("libgit2", "libgit2")
+ # repo = clone_repository(
+ # "https://bitbucket.org/libgit2/testgitrepository.git",
+ # self._temp_dir, credentials=credentials)
+ #
+ # self.assertFalse(repo.is_empty)
# FIXME The tests below are commented because they are broken:
#