Merge pull request #2252 from coreos-inc/parallel-tests

Fix pytests and enable parallel registry tests
This commit is contained in:
josephschorr 2016-12-20 16:56:52 -05:00 committed by GitHub
commit 732ab67b57
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