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

Method testLazyAttributes

tests/Label.py:59–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.assertEqual(repr(self.label), 'Label(name="bug")')
58
59 def testLazyAttributes(self):
60 label = self.g.withLazy(True).get_repo("lazy/repo").get_label("good first issue")
61 self.assertEqual(str(label), 'Label(name="good first issue")')
62 self.assertEqual(label._identity, "good%20first%20issue")
63 self.assertEqual(label.name, "good first issue")
64 self.assertEqual(label.url, "/repos/lazy/repo/labels/good%20first%20issue")
65
66 def testEdit(self):
67 self.label.edit("LabelEditedByPyGithub", "0000ff", "Description of LabelEditedByPyGithub")

Callers

nothing calls this directly

Calls 3

get_labelMethod · 0.80
get_repoMethod · 0.45
withLazyMethod · 0.45

Tested by

no test coverage detected