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

Method testEdit

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

Source from the content-addressed store, hash-verified

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")
68 self.assertEqual(self.label.color, "0000ff")
69 self.assertEqual(self.label.description, "Description of LabelEditedByPyGithub")
70 self.assertEqual(self.label.name, "LabelEditedByPyGithub")
71 self.assertEqual(
72 self.label.url,
73 "https://api.github.com/repos/PyGithub/PyGithub/labels/LabelEditedByPyGithub",
74 )
75
76 def testDelete(self):
77 self.label.delete()

Callers

nothing calls this directly

Calls 1

editMethod · 0.45

Tested by

no test coverage detected