mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Trying for more visibility in Travis
This commit is contained in:
parent
902a5bf28f
commit
d1d7a3dfc5
1 changed files with 5 additions and 2 deletions
|
|
@ -394,8 +394,11 @@ def test_paginate_compound_keys(app_client):
|
||||||
while path:
|
while path:
|
||||||
page += 1
|
page += 1
|
||||||
response = app_client.get(path, gather_request=False)
|
response = app_client.get(path, gather_request=False)
|
||||||
fetched.extend(response.json['rows'])
|
data = response.json
|
||||||
path = response.json['next_url']
|
print(data)
|
||||||
|
assert 'rows' in data
|
||||||
|
fetched.extend(data['rows'])
|
||||||
|
path = data['next_url']
|
||||||
assert page < 100
|
assert page < 100
|
||||||
assert 1001 == len(fetched)
|
assert 1001 == len(fetched)
|
||||||
assert 21 == page
|
assert 21 == page
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue