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

This commit is contained in:
2025-07-19 19:23:29 +02:00
parent 7cbc17eb28
commit 6894e487d1
+2 -1
View File
@@ -64,7 +64,7 @@ def normalize_nodeid(nodeid):
def get_details_block_other_sections(summary, body, level=0):
margin = 18 * level
border = f"border-left: 2px solid #eee;" if level > 0 else ""
body = f"```python\n{body}\n```"
#body = f"```python\n{body}\n```"
return (f'<div style="margin-left: {margin}px; {border} padding-left: 8px;">\n'
f"<details>\n<summary>{summary}</summary>\n\n"
f"{body}\n"
@@ -123,6 +123,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 += f"<br><span style='color: #888; font-size: 0.9em;'>(params: {param_display})</span>"
body = []
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\n"