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

Method testAddSubIssue

tests/SubIssue.py:40–51  ·  view source on GitHub ↗

Test adding a sub-issue to an issue.

(self)

Source from the content-addressed store, hash-verified

38 self.assertListKeyEqual(self.issue.get_sub_issues(), lambda s: s.number, [34, 35])
39
40 def testAddSubIssue(self):
41 """
42 Test adding a sub-issue to an issue.
43 """
44 initial_sub_issues = list(self.issue.get_sub_issues())
45 self.assertListKeyEqual(initial_sub_issues, lambda s: s.number, [34, 35, 38])
46
47 sub_issue = self.repo.get_issue(39)
48 self.issue.add_sub_issue(sub_issue)
49
50 updated_sub_issues = list(self.issue.get_sub_issues())
51 self.assertListKeyEqual(updated_sub_issues, lambda s: s.number, [34, 35, 38, 39])
52
53 def testRemoveSubIssue(self):
54 """

Callers

nothing calls this directly

Calls 4

get_sub_issuesMethod · 0.80
assertListKeyEqualMethod · 0.80
add_sub_issueMethod · 0.80
get_issueMethod · 0.45

Tested by

no test coverage detected