Fix bug with ?_next=x&_sort=rowid, closes #1470

This commit is contained in:
Simon Willison 2021-10-09 18:14:56 -07:00
commit 875117c343
2 changed files with 10 additions and 2 deletions

View file

@ -1817,3 +1817,9 @@ def test_facet_total_shown_if_facet_max_size(use_facet_size_max):
assert fragment in response.text
else:
assert fragment not in response.text
def test_sort_rowid_with_next(app_client):
# https://github.com/simonw/datasette/issues/1470
response = app_client.get("/fixtures/binary_data?_size=1&_next=1&_sort=rowid")
assert response.status == 200