api: added get_comment method, and return versions for comments to allow simple edits via API.

This commit is contained in:
Marcin Kuzminski 2020-07-10 11:49:52 +02:00
parent 97a12ce1b9
commit 9cadf302eb
7 changed files with 204 additions and 91 deletions

View file

@ -37,8 +37,10 @@ class TestGetMethod(object):
id_, params = build_data(self.apikey, 'get_method', pattern='*comment*')
response = api_call(self.app, params)
expected = ['changeset_comment', 'comment_pull_request', 'edit_comment',
'get_pull_request_comments', 'comment_commit', 'get_repo_comments']
expected = [
'changeset_comment', 'comment_pull_request', 'get_pull_request_comments',
'comment_commit', 'edit_comment', 'get_comment', 'get_repo_comments'
]
assert_ok(id_, expected, given=response.body)
def test_get_methods_on_single_match(self):