Fix for test_paginate_using_link_header

This commit is contained in:
Simon Willison 2020-10-31 13:48:39 -07:00
commit 6bb41c4b33

View file

@ -1859,6 +1859,7 @@ def test_paginate_using_link_header(app_client, qs):
assert link.startswith("<")
assert link.endswith('>; rel="next"')
path = link[1:].split(">")[0]
path = path.replace("http://localhost", "")
else:
path = None
assert num_pages == 21