()
| 165 | |
| 166 | |
| 167 | def 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 | |
| 184 | def test_gh_resolve_non_mainline(): |
nothing calls this directly
no test coverage detected