mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Config: Make json.array default to "on"
- This makes the default "export" output work out of the box with most JSON parsing libraries.
This commit is contained in:
parent
e516f2bf65
commit
c1a0370daa
6 changed files with 14 additions and 7 deletions
|
@ -48,7 +48,7 @@ class TestExportCommand(TestCase):
|
|||
self.t(('add', 'test'))
|
||||
|
||||
def export(self, identifier):
|
||||
return json.loads(self.t((str(identifier), 'export'))[1].strip())
|
||||
return json.loads(self.t((str(identifier), 'rc.json.array=off', 'export'))[1].strip())
|
||||
|
||||
def assertType(self, value, type):
|
||||
self.assertEqual(isinstance(value, type), True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue