server/search: fix case in result JSON

This commit is contained in:
rr- 2016-04-09 08:58:24 +02:00
parent b6df2ed903
commit 8023c29c0e
2 changed files with 2 additions and 2 deletions

View File

@ -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],
}

View File

@ -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'])