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

Method testGetLabel

tests/Repository.py:419–426  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

417 )
418
419 def testGetLabel(self):
420 label = self.repo.get_label("Label with silly name % * + created by PyGithub")
421 self.assertEqual(label.color, "00ff00")
422 self.assertEqual(label.name, "Label with silly name % * + created by PyGithub")
423 self.assertEqual(
424 label.url,
425 "https://api.github.com/repos/PyGithub/PyGithub/labels/Label+with+silly+name+%25+%2A+%2B+created+by+PyGithub",
426 )
427
428 def testCreateHookWithMinimalParameters(self):
429 hook = self.repo.create_hook("web", {"url": "http://foobar.com"})

Callers

nothing calls this directly

Calls 1

get_labelMethod · 0.80

Tested by

no test coverage detected