MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testPickleRepository

Method testPickleRepository

tests/Pickle.py:51–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.assertEqual(len(gh2._Github__requester._Requester__custom_connections), 0)
50
51 def testPickleRepository(self):
52 gh = github.Github(lazy=True)
53 repo = gh.get_repo(REPO_NAME)
54 repo2 = pickle.loads(pickle.dumps(repo))
55 self.assertIsInstance(repo2, Repository)
56 self.assertIsNotNone(repo2._requester._Requester__connection_lock)
57 self.assertIsNone(repo2._requester._Requester__connection)
58 self.assertEqual(len(repo2._requester._Requester__custom_connections), 0)
59
60 def testPicklePaginatedList(self):
61 gh = github.Github()

Callers

nothing calls this directly

Calls 1

get_repoMethod · 0.95

Tested by

no test coverage detected