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

Method testLazyAttributes

tests/Environment.py:77–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self.assertFalse(self.environment.deployment_branch_policy.custom_branch_policies)
76
77 def testLazyAttributes(self):
78 env = self.g.withLazy(True).get_repo("lazy/repo").get_environment("the env")
79 self.assertEqual(str(env), 'Environment(name="the env")')
80 self.assertEqual(env.name, "the env")
81 self.assertEqual(env.url, "/repos/lazy/repo/environments/the%20env")
82
83 def testProtectionRules(self):
84 protection_rules = self.environment.protection_rules

Callers

nothing calls this directly

Calls 3

get_environmentMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected