def get_pr(self, pr_id: int) -> PullRequest: return GithubPullRequest.get(project=self, id=pr_id)
def test_wrong_auth_static_method(self): # Verify that the exception handler is applied to static methods with pytest.raises(GithubAPIException): GithubPullRequest.get(self.ogr_project, 1)