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

Method testLazyAttributes

tests/Deployment.py:101–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 )
100
101 def testLazyAttributes(self):
102 deploy = self.g.withLazy(True).get_repo("lazy/repo").get_deployment(42)
103 self.assertEqual(str(deploy), 'Deployment(url="/repos/lazy/repo/deployments/42", id=42)')
104 self.assertEqual(deploy.id, 42)
105 self.assertEqual(deploy.url, "/repos/lazy/repo/deployments/42")

Callers

nothing calls this directly

Calls 3

get_deploymentMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected