mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Better failure message to help debug test
This commit is contained in:
parent
e7c7e21277
commit
f18d1ecac6
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ async def test_allowed_json_total_count(ds_with_permissions):
|
|||
data = response.json()
|
||||
|
||||
# We created 4 tables total (2 in analytics, 2 in production)
|
||||
assert data["total"] == 4
|
||||
import json
|
||||
assert data["total"] == 4, f"Expected total=4, got: {json.dumps(data, separators=(',', ':'))}"
|
||||
|
||||
|
||||
# /-/rules.json tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue