def test_reapprove(self): self.approvals.reapprove() self.api.call.has_calls([ call(POST(endpoint='/projects/1/merge_requests/6/approve', args={}, extract=None), sudo=1), call(POST(endpoint='/projects/1/merge_requests/6/approve', args={}, extract=None), sudo=2) ])
def test_comment(self): self.merge_request.comment('blah') self.api.call.assert_called_once_with( POST( '/projects/1234/merge_requests/54/notes', {'body': 'blah'}, ), )