server/search: fix case in result JSON
This commit is contained in:
parent
b6df2ed903
commit
8023c29c0e
|
@ -43,7 +43,7 @@ class UserListApi(BaseApi):
|
|||
return {
|
||||
'query': query,
|
||||
'page': page,
|
||||
'page_size': self._search_executor.page_size,
|
||||
'pageSize': self._search_executor.page_size,
|
||||
'total': count,
|
||||
'users': [_serialize_user(context.user, user) for user in user_list],
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class TestRetrievingUsers(DatabaseTestCase):
|
|||
result = api_.get(self.context)
|
||||
self.assertEqual(result['query'], '')
|
||||
self.assertEqual(result['page'], 1)
|
||||
self.assertEqual(result['page_size'], 100)
|
||||
self.assertEqual(result['pageSize'], 100)
|
||||
self.assertEqual(result['total'], 2)
|
||||
self.assertEqual([u['name'] for u in result['users']], ['u1', 'u2'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue