api: added function to fetch comments for a repository.

This commit is contained in:
Marcin Kuzminski 2019-01-28 12:05:34 +01:00
parent 02a5aa5f47
commit f38e87b9b7
8 changed files with 212 additions and 5 deletions

View file

@ -86,7 +86,9 @@ class TestApi(object):
def test_api_non_existing_method_have_similar(self, request):
id_, params = build_data(self.apikey, 'comment', args='xx')
response = api_call(self.app, params)
expected = 'No such method: comment. Similar methods: changeset_comment, comment_pull_request, get_pull_request_comments, comment_commit'
expected = 'No such method: comment. ' \
'Similar methods: changeset_comment, comment_pull_request, ' \
'get_pull_request_comments, comment_commit, get_repo_comments'
assert_error(id_, expected, given=response.body)
def test_api_disabled_user(self, request):