api: pull-requests, make the repoid parameter optional. Because pullrequestid is global

we don't want to complicate things more by requiring repoid. Left for backward compat.
This commit is contained in:
Marcin Kuzminski 2017-11-23 21:14:04 +01:00
parent b809d00f88
commit bc23ad316c
8 changed files with 72 additions and 39 deletions

View file

@ -86,7 +86,7 @@ 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, comment_commit'
expected = 'No such method: comment. Similar methods: changeset_comment, comment_pull_request, get_pull_request_comments, comment_commit'
assert_error(id_, expected, given=response.body)
def test_api_disabled_user(self, request):