Skip to content

Commit

Permalink
Merge pull request #1330 from galaxyproject/test-json
Browse files Browse the repository at this point in the history
Add indent and sort_keys to tool_test_json
  • Loading branch information
mvdbeek committed Nov 28, 2022
2 parents 2ace00f + 8790aae commit b89426a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planemo/galaxy/test/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def handle_reports(ctx, structured_data, kwds):
if structured_report_file:
try:
with open(structured_report_file, mode="w", encoding="utf-8") as f:
f.write(unicodify(json.dumps(structured_data)))
f.write(unicodify(json.dumps(structured_data, indent=4, sort_keys=True)))
except Exception as e:
exceptions.append(e)

Expand Down

0 comments on commit b89426a

Please sign in to comment.