api: added function to fetch comments for a repository.
This commit is contained in:
parent
02a5aa5f47
commit
f38e87b9b7
8 changed files with 212 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue