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

This commit is contained in:
2025-07-16 13:23:24 +02:00
parent 18b937eb31
commit c8d9c7e18b
+3 -4
View File
@@ -26,7 +26,7 @@ def build_tree(data, tree):
elif isinstance(data, list):
for value in data:
if isinstance(value, (dict, list)):
branch = tree.add("[bold blue]list[/]")
branch = tree.add(f"[bold magenta]-[/]")
build_tree(value, branch)
else:
tree.add(style_value(value))
@@ -41,9 +41,8 @@ def main():
build_tree(data, root)
console.print(root)
with open("ci-reports/markdown/json-tree-view.log", "w") as f:
with open("ci-reports/markdown/json-tree-view.md", "w") as f:
f.write(console.export_text(clear=False))
if __name__ == "__main__":
main()
main()