Fix pytests and enable parallel registry tests
This commit is contained in:
parent
135f4dae0c
commit
481cebe46b
7 changed files with 29 additions and 13 deletions
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
import os.path
|
||||
|
||||
from functools import wraps
|
||||
from urlparse import urlparse
|
||||
|
@ -75,7 +76,8 @@ def paginate(limit_kwarg_name='limit', offset_kwarg_name='offset',
|
|||
return
|
||||
|
||||
next_page_token = encrypt_page_token({'offset': limit + offset})
|
||||
link_url = get_app_url() + url_for(request.endpoint, **request.view_args)
|
||||
|
||||
link_url = os.path.join(get_app_url(), url_for(request.endpoint, **request.view_args))
|
||||
link_param = urlencode({'n': limit, 'next_page': next_page_token})
|
||||
link = '<%s?%s>; rel="next"' % (link_url, link_param)
|
||||
response.headers['Link'] = link
|
||||
|
|
Reference in a new issue