get-perms-api-helper: show nicer message when prefix is specified to help in API usage.

This commit is contained in:
Marcin Kuzminski 2020-01-14 16:15:13 +01:00
parent 2c14a575a7
commit abcf0ed683
6 changed files with 11 additions and 8 deletions

View file

@ -65,7 +65,7 @@ class TestGrantUserPermission(object):
perm=perm)
response = api_call(self.app, params)
expected = 'permission `%s` does not exist' % (perm,)
expected = 'permission `%s` does not exist.' % (perm,)
assert_error(id_, expected, given=response.body)
@mock.patch.object(RepoModel, 'grant_user_permission', crash)