Remove checks for obsolete methods
This is not how you define your callbacks, so this test isn't testing for anything useful.
This commit is contained in:
@@ -188,21 +188,6 @@ class RepositoryTest(utils.RepoTestCase):
|
|||||||
end = sys.getrefcount(self.repo)
|
end = sys.getrefcount(self.repo)
|
||||||
self.assertEqual(start, end)
|
self.assertEqual(start, end)
|
||||||
|
|
||||||
def test_remote_callback_typecheck(self):
|
|
||||||
remote = self.repo.remotes[0]
|
|
||||||
remote.progress = 5
|
|
||||||
self.assertRaises(TypeError, remote, 'fetch')
|
|
||||||
|
|
||||||
remote = self.repo.remotes[0]
|
|
||||||
remote.transfer_progress = 5
|
|
||||||
self.assertRaises(TypeError, remote, 'fetch')
|
|
||||||
|
|
||||||
remote = self.repo.remotes[0]
|
|
||||||
remote.update_tips = 5
|
|
||||||
self.assertRaises(TypeError, remote, 'fetch')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class EmptyRepositoryTest(utils.EmptyRepoTestCase):
|
class EmptyRepositoryTest(utils.EmptyRepoTestCase):
|
||||||
def test_fetch(self):
|
def test_fetch(self):
|
||||||
remote = self.repo.remotes[0]
|
remote = self.repo.remotes[0]
|
||||||
|
Reference in New Issue
Block a user