Skip to content
Snippets Groups Projects
Commit 41360e51 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Use pprint.pformat in the JSON comparator to serialise the differneces from jsondiff.

parent 456f6c3b
No related branches found
No related tags found
No related merge requests found
Pipeline #204682 passed
......@@ -19,6 +19,7 @@
import re
import json
import pprint
import logging
import collections
......@@ -95,9 +96,7 @@ class JSONFile(File):
difference.add_comment(f"Similarity: {similarity}%")
difference.add_comment(
"Differences: {}".format(
json.dumps(diff, indent=2, sort_keys=True)
)
"Differences: {}".format(pprint.pformat(diff, width=100))
)
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment