From f18d1ecac6d8ac9c6f3675a26cdf17c7592d9585 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 25 Oct 2025 15:20:57 -0700 Subject: [PATCH] Better failure message to help debug test --- tests/test_permission_endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_permission_endpoints.py b/tests/test_permission_endpoints.py index 411ce08a..6c466529 100644 --- a/tests/test_permission_endpoints.py +++ b/tests/test_permission_endpoints.py @@ -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