mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
table_rows => table_rows_count, filtered_table_rows => filtered_table_rows_count
Renamed properties. Closes #194
This commit is contained in:
parent
c1d37fdf2b
commit
a290f28caa
6 changed files with 17 additions and 15 deletions
|
|
@ -394,6 +394,8 @@ def test_sortable_and_filtered(app_client):
|
|||
row for row in generate_sortable_rows(201)
|
||||
if 'd' in row['content']
|
||||
]
|
||||
assert len(expected) == response.json['filtered_table_rows_count']
|
||||
assert 201 == response.json['table_rows_count']
|
||||
expected.sort(key=lambda row: -row['sortable'])
|
||||
assert [
|
||||
r['content'] for r in expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue