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

Method testLazyAttributes

tests/Team.py:106–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 self.assertEqual(self.team.html_url, "https://github.com/orgs/BeaverSoftware/teams/team-slug")
105
106 def testLazyAttributes(self):
107 team = self.g.withLazy(True).get_organization("org").get_team(42)
108 self.assertEqual(str(team), "Team(name=None, id=42)")
109 self.assertEqual(team._identity, 42)
110 self.assertEqual(team.id, 42)
111 self.assertEqual(team.url, "/teams/42")
112
113 def testDiscussions(self):
114 discussions = list(self.team.get_discussions())

Callers

nothing calls this directly

Calls 3

get_teamMethod · 0.80
get_organizationMethod · 0.80
withLazyMethod · 0.45

Tested by

no test coverage detected