Fix pytests and enable parallel registry tests

This commit is contained in:
Joseph Schorr 2016-12-15 12:04:57 -05:00
parent 135f4dae0c
commit 481cebe46b
7 changed files with 29 additions and 13 deletions

View file

@ -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