Better failure message to help debug test

This commit is contained in:
Simon Willison 2025-10-25 15:20:57 -07:00
commit f18d1ecac6

View file

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