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

Method testCreateIssueWithLabel

tests/Issue50.py:102–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 )
101
102 def testCreateIssueWithLabel(self):
103 issue = self.repo.create_issue(
104 "Issue created by PyGithub to test issue #50",
105 labels=[self.repo.get_label(self.labelName)],
106 )
107 self.assertListKeyEqual(issue.labels, lambda lb: lb.name, [self.labelName])
108 self.assertEqual(issue.number, 52)

Callers

nothing calls this directly

Calls 3

create_issueMethod · 0.80
get_labelMethod · 0.80
assertListKeyEqualMethod · 0.80

Tested by

no test coverage detected