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

Method testDeleteAndSetLabelsWithStringArguments

tests/Issue.py:294–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 self.assertListKeyEqual(self.issue.get_labels(), lambda lb: lb.name, ["Bug", "Question"])
293
294 def testDeleteAndSetLabelsWithStringArguments(self):
295 bug = "Bug"
296 question = "Question"
297 self.assertListKeyEqual(
298 self.issue.get_labels(),
299 lambda lb: lb.name,
300 ["Bug", "Project management", "Question"],
301 )
302 self.issue.delete_labels()
303 self.assertListKeyEqual(self.issue.get_labels(), None, [])
304 self.issue.set_labels(bug, question)
305 self.assertListKeyEqual(self.issue.get_labels(), lambda lb: lb.name, ["Bug", "Question"])
306
307 def testGetReactions(self):
308 reactions = self.issue.get_reactions()

Callers

nothing calls this directly

Calls 4

assertListKeyEqualMethod · 0.80
get_labelsMethod · 0.45
delete_labelsMethod · 0.45
set_labelsMethod · 0.45

Tested by

no test coverage detected