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

Method testPrioritizeSubIssue

tests/SubIssue.py:66–78  ·  view source on GitHub ↗

Test changing the priority of a sub-issue.

(self)

Source from the content-addressed store, hash-verified

64 self.assertListKeyEqual(updated_sub_issues, lambda s: s.number, [34, 35, 38])
65
66 def testPrioritizeSubIssue(self):
67 """
68 Test changing the priority of a sub-issue.
69 """
70 initial_sub_issues = list(self.issue.get_sub_issues())
71 self.assertListKeyEqual(initial_sub_issues, lambda s: s.number, [34, 35, 38])
72
73 sub_issue = self.repo.get_issue(35)
74 after_issue = self.repo.get_issue(38)
75 self.issue.prioritize_sub_issue(sub_issue, after_issue)
76
77 updated_sub_issues = list(self.issue.get_sub_issues())
78 self.assertListKeyEqual(updated_sub_issues, lambda s: s.number, [34, 38, 35])

Callers

nothing calls this directly

Calls 4

get_sub_issuesMethod · 0.80
assertListKeyEqualMethod · 0.80
prioritize_sub_issueMethod · 0.80
get_issueMethod · 0.45

Tested by

no test coverage detected