From c98fda6d674c87e19f9c86cd72ef192fcc33e6d5 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 17 Jul 2025 15:49:24 +0200 Subject: [PATCH] Update json_to_md.py --- json_to_md.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_to_md.py b/json_to_md.py index 55e0c03b..fc5b64e4 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -12,7 +12,7 @@ def stringify(obj, indent=0): space = ' ' * indent if obj is None or obj == "": - return "None" + return "[]" elif isinstance(obj, (int, float, str, bool)): return str(obj) elif isinstance(obj, list): @@ -52,7 +52,6 @@ def normalize_nodeid(nodeid): def get_details_block(summary, body, level=0, params_str=None): margin = 18 * level border = f"border-left: 2px solid #eee;" if level > 0 else "" - # Affiche les paramètres dans le résumé si présent if params_str: summary = f"{summary} parameters: [{params_str}]" return (f'
\n' @@ -222,6 +221,7 @@ def json_to_md_nested(json_path, md_path, runtime_params=None): folder_body += get_details_block(f"{emoji} {short_node}", body_coll, level=2) f.write(get_details_block(f"{folder_emoji} {folder} ({len(collectors)} tests)", folder_body + body_collectors, level=1)) + # ---------- OTHER sections ----------- EXCLUDED_KEYS = {'tests', 'collectors'} keys = list(data.keys())