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

@ -38,11 +38,12 @@ class TestGetMethod(object):
response = api_call(self.app, params)
expected = ['changeset_comment', 'comment_pull_request',
'comment_commit']
'get_pull_request_comments', 'comment_commit']
assert_ok(id_, expected, given=response.body)
def test_get_methods_on_single_match(self):
id_, params = build_data(self.apikey, 'get_method', pattern='*comment_commit*')
id_, params = build_data(self.apikey, 'get_method',
pattern='*comment_commit*')
response = api_call(self.app, params)
expected = ['comment_commit',