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

Method testLazyAttributes

tests/Project.py:65–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.assertEqual(self.proj.url, "https://api.github.com/projects/1682941")
64
65 def testLazyAttributes(self):
66 project = self.g.withLazy(True).get_project(42)
67 self.assertEqual(str(project), "Project(name=None)")
68 self.assertEqual(project.id, 42)
69 self.assertEqual(project.url, "/projects/42")
70
71 def testGetOrganizationProjects(self):
72 expectedProjects = ["Project1", "Project2", "Project3"]

Callers

nothing calls this directly

Calls 2

get_projectMethod · 0.80
withLazyMethod · 0.45

Tested by

no test coverage detected