Update json_to_md.py
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 23s

This commit is contained in:
2025-07-19 19:18:49 +02:00
parent 3733f9f608
commit 7a36cffe25
+2 -2
View File
@@ -128,10 +128,10 @@ def make_test_block(test, status, emoji, level, runtime_params):
skip_keys = {"nodeid", "global_number"}
for phase in [k for k in test if isinstance(test[k], dict) and k not in skip_keys]:
body += f"- **{phase.capitalize()} Phase**\n"
body += f"**{phase.capitalize()} Phase**\n"
for field, value in test[phase].items():
block = stringify(value)
body += f" **{field}:**\n\n```python\n{block}\n```\n\n"
body += f"**{field}:**\n\n```python\n{block}\n```\n\n"
# Formatage final avec indentation cohérente
body_content = "\n".join(f" {line}" for line in body.strip().splitlines())