Esempio n. 1
0
 def get_pr(self, pr_id: int) -> PullRequest:
     return GitlabPullRequest.get(project=self, id=pr_id)
Esempio n. 2
0
 def test_wrong_auth_static_method(self):
     # Verify that the exception handler is applied to static methods
     with pytest.raises(GitlabAPIException):
         GitlabPullRequest.get(self.project, 1)