From 382be678ea256250ce9c8e280462ca8115911896 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Fri, 18 Jul 2025 01:17:42 +0200 Subject: [PATCH] Update json_to_md.py --- json_to_md.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/json_to_md.py b/json_to_md.py index 6d6d776b..dc257bc9 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -92,6 +92,7 @@ def make_test_block(test, status, emoji, level, runtime_params): param_display = ", ".join(f"{k}={sanitize_param_value(v)}" for k, v in params.items()) summary_note += f" params: {param_display}" + # Bloc des paramètres if callspec: callspec_block = "```python\n" + stringify(callspec) + "\n```" body_test += get_details_block("📌 Runtime Parameters", callspec_block, level + 1) @@ -105,9 +106,12 @@ def make_test_block(test, status, emoji, level, runtime_params): details_body = "```python\n" + stringify(value) + "\n```" if value is not None else "None" phase_body += get_details_block(f"📌 {field.capitalize()}", details_body, level + 2) if phase_body: - body_test += f"\n### 🔧 {phase.capitalize()} Phase\n\n" + phase_body + body_test += get_details_block(f"🔧 {phase.capitalize()} Phase", phase_body, level + 1) + + return get_details_block(summary_note, body_test, level) + + - return get_details_block(summary_note, body_test, level + 1) def json_to_md_nested(json_path, md_path, runtime_params=None): with open(json_path) as f: