def METHOD_NAME(self, get_jwt):
    stub_installation_token()
    responses.add(
        responses.GET,
        "https://api.github.com/repos/getsentry/example-repo/compare/xyz123...abcdef",
        json=json.loads(COMPARE_COMMITS_EXAMPLE),
    )
    responses.add(
        responses.GET,
        "https://api.github.com/repos/getsentry/example-repo/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
        json=json.loads(GET_COMMIT_EXAMPLE),
    )
    result = self.provider.compare_commits(self.repository, "xyz123", "abcdef")
    patchset = result[0]["patch_set"]
    assert patchset[0] == {"path": "file1.txt", "type": "M"}
    assert patchset[1] == {"path": "added.txt", "type": "A"}
    assert patchset[2] == {"path": "removed.txt", "type": "D"}
    assert patchset[3] == {"path": "old_name.txt", "type": "D"}
    assert patchset[4] == {"path": "renamed.txt", "type": "A"}