This commit is contained in:
+10
-12
@@ -112,30 +112,28 @@ 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 += f"<br><span style='color: #888; font-size: 0.9em;'>(params: {param_display})</span>"
|
||||
|
||||
# Construction du corps avec indentation contrôlée
|
||||
# Construction du corps avec formatage Markdown direct
|
||||
body = []
|
||||
|
||||
if callspec:
|
||||
body.append(" **📌 Runtime Parameters**")
|
||||
body.append(" ```python")
|
||||
body.append(f" {stringify(callspec)}")
|
||||
body.append(" ```")
|
||||
body.append("**📌 Runtime Parameters**")
|
||||
body.append(f"```python\n{stringify(callspec)}\n```")
|
||||
|
||||
skip_keys = {"nodeid"}
|
||||
for phase in [k for k in test if isinstance(test[k], dict) and k not in skip_keys]:
|
||||
body.append(f" **🔧 {phase.capitalize()} Phase**")
|
||||
body.append(f"**🔧 {phase.capitalize()} Phase**")
|
||||
for field, value in test[phase].items():
|
||||
body.append(f" **{field}:**")
|
||||
body.append(" ```python")
|
||||
body.append(f" {stringify(value)}")
|
||||
body.append(" ```")
|
||||
body.append(f"**{field}:**")
|
||||
body.append(f"```python\n{stringify(value)}\n```")
|
||||
|
||||
body_content = "\n".join(body)
|
||||
# On joint avec des doubles sauts de ligne MAIS sans indentation
|
||||
body_content = "\n\n".join(body)
|
||||
|
||||
# Retour avec la structure originale mais corps non indenté
|
||||
return (
|
||||
f" - <details>\n"
|
||||
f" <summary>{summary}</summary>\n\n"
|
||||
f"{body_content}\n"
|
||||
f" {body_content}\n" # Pas d'indentation ici!
|
||||
f" </details>\n\n"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user