From b5040b844d99aca19adb5636e30fc40093aca600 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 3 Jul 2025 22:48:55 -0400 Subject: [PATCH] test: handle index size error output --- src/tests/test_nostr_index_size.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/test_nostr_index_size.py b/src/tests/test_nostr_index_size.py index 820cfdf..ec7acb7 100644 --- a/src/tests/test_nostr_index_size.py +++ b/src/tests/test_nostr_index_size.py @@ -106,7 +106,8 @@ def test_nostr_index_size_limits(pytestconfig: pytest.Config): print(f"Nostr account npub: {npub}") print("Count | Payload Bytes | Published | Retrieved") for cnt, payload, pub, ret in results: - print(f"{cnt:>5} | {payload:>13} | {pub} | {ret}") + payload_str = str(payload) if payload is not None else "N/A" + print(f"{cnt:>5} | {payload_str:>13} | {pub} | {ret}") synced = sum(1 for _, _, pub, ret in results if pub and ret) print(f"Successfully synced entries: {synced}")