get-perms-api-helper: show nicer message when prefix is specified to help in API usage.
This commit is contained in:
parent
2c14a575a7
commit
abcf0ed683
6 changed files with 11 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue