mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-05 16:13:59 +00:00
Format JSON output files with indentation
This commit is contained in:
@@ -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'
|
||||
'}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user