table_rows => table_rows_count, filtered_table_rows => filtered_table_rows_count

Renamed properties. Closes #194
This commit is contained in:
Simon Willison 2018-04-08 22:24:24 -07:00
commit a290f28caa
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
6 changed files with 17 additions and 15 deletions

View file

@ -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