]> git.jsancho.org Git - datasette-pytables.git/blobdiff - tests/test_api.py
Paginate with offset argument
[datasette-pytables.git] / tests / test_api.py
index b1900efcd422f91ae4b6fd253d74db0ec44ece95..71c926277900aeaea63a1de202886797f2e08a2d 100644 (file)
@@ -232,6 +232,7 @@ def test_paginate_tables_and_arrays(app_client, path, expected_rows, expected_pa
         fetched.extend(response.json['rows'])
         path = response.json['next_url']
         if path:
+            path = path.replace('http://localhost', '')
             assert response.json['next']
             assert '_next={}'.format(response.json['next']) in path