MCPcopy Create free account
hub / github.com/apache/arrow / test_gh_resolve

Function test_gh_resolve

dev/test_merge_arrow_pr.py:167–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166
167def test_gh_resolve():
168 gh = FakeGitHub(issues={fake_issue_id: FAKE_ISSUE_1},
169 project_versions=SOURCE_VERSIONS)
170
171 my_comment = 'my comment'
172 fix_version = "0.10.0"
173
174 issue = merge_arrow_pr.GitHubIssue(gh, fake_issue_id, FakeCLI())
175 issue.resolve(fix_version, my_comment, pr_body="")
176
177 assert len(gh.captured_transitions) == 2
178 assert gh.captured_transitions[0]['action'] == 'assign_milestone'
179 assert gh.captured_transitions[1]['action'] == 'close_issue'
180 assert gh.captured_transitions[1]['comment'] == my_comment
181 assert gh.captured_transitions[0]['milestone'] == fix_version
182
183
184def test_gh_resolve_non_mainline():

Callers

nothing calls this directly

Calls 4

resolveMethod · 0.95
FakeGitHubClass · 0.85
FakeCLIClass · 0.85
lenFunction · 0.85

Tested by

no test coverage detected