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

Method testRemoveSubIssue

tests/SubIssue.py:53–64  ·  view source on GitHub ↗

Test removing a sub-issue from an issue.

(self)

Source from the content-addressed store, hash-verified

51 self.assertListKeyEqual(updated_sub_issues, lambda s: s.number, [34, 35, 38, 39])
52
53 def testRemoveSubIssue(self):
54 """
55 Test removing a sub-issue from an issue.
56 """
57 initial_sub_issues = list(self.issue.get_sub_issues())
58 self.assertListKeyEqual(initial_sub_issues, lambda s: s.number, [34, 35, 38, 39])
59
60 sub_issue = self.repo.get_issue(39)
61 self.issue.remove_sub_issue(sub_issue)
62
63 updated_sub_issues = list(self.issue.get_sub_issues())
64 self.assertListKeyEqual(updated_sub_issues, lambda s: s.number, [34, 35, 38])
65
66 def testPrioritizeSubIssue(self):
67 """

Callers

nothing calls this directly

Calls 4

get_sub_issuesMethod · 0.80
assertListKeyEqualMethod · 0.80
remove_sub_issueMethod · 0.80
get_issueMethod · 0.45

Tested by

no test coverage detected