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

Method testLazyAttributes

tests/GitReleaseAsset.py:68–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.assertEqual(self.asset.url, "https://api.github.com/repos/EnricoMi/PyGithub/releases/assets/224868540")
67
68 def testLazyAttributes(self):
69 asset = self.g.withLazy(True).get_repo("lazy/repo").get_release_asset(42)
70 self.assertEqual(str(asset), 'GitReleaseAsset(url="/repos/lazy/repo/releases/assets/42")')
71 self.assertEqual(asset.id, 42)
72 self.assertEqual(asset.url, "/repos/lazy/repo/releases/assets/42")
73
74 @skipIf(os.name == "nt", "not working on Windows")
75 def testDownloadAssetFile(self):

Callers

nothing calls this directly

Calls 3

get_release_assetMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected