Format JSON output files with indentation

This commit is contained in:
Bob Swift
2021-05-06 07:57:02 -06:00
parent 11da62f93b
commit c09dde4d4a
3 changed files with 19 additions and 3 deletions

View File

@@ -154,3 +154,14 @@ class ScriptClassesTest(PicardTestCase):
'"version": ""'
'}'
)
self.assertEqual(test_script.to_json(indented=True),
'{\n'
' "author": "Script author",\n'
' "description": "Script description",\n'
' "last_updated": "2021-04-26",\n'
' "license": "",\n'
' "script": "Script text",\n'
' "title": "Script 1",\n'
' "version": ""\n'
'}'
)