mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Print more information on failing test
This commit is contained in:
parent
97cf5151ba
commit
59a3aa859c
1 changed files with 3 additions and 0 deletions
|
|
@ -460,6 +460,9 @@ def test_sortable(app_client, query_string, sort_key, human_description_en):
|
||||||
assert 5 == page
|
assert 5 == page
|
||||||
expected = list(generate_sortable_rows(201))
|
expected = list(generate_sortable_rows(201))
|
||||||
expected.sort(key=sort_key)
|
expected.sort(key=sort_key)
|
||||||
|
import json
|
||||||
|
print('expected = {}'.format(json.dumps(expected)))
|
||||||
|
print('fetched = {}'.format(json.dumps(fetched)))
|
||||||
assert [
|
assert [
|
||||||
r['content'] for r in expected
|
r['content'] for r in expected
|
||||||
] == [
|
] == [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue