mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-18 15:33:08 +02:00
Fixes #2580
Check annotations field before parsing Add test case for annotations
This commit is contained in:
parent
48bf64a501
commit
05904549a0
2 changed files with 11 additions and 0 deletions
|
@ -292,6 +292,12 @@ class TestImportValidate(TestCase):
|
|||
code, out, err = self.t.runError("import", input=j)
|
||||
self.assertIn("The status 'foo' is not valid.", err)
|
||||
|
||||
def test_import_malformed_annotation(self):
|
||||
"""Verify invalid 'annnotations' is caught"""
|
||||
j = '{"description": "bad", "annotations": "bad"}'
|
||||
code, out, err = self.t.runError("import", input=j)
|
||||
self.assertIn('Annotations is malformed: "bad"', err)
|
||||
|
||||
|
||||
class TestImportWithoutISO(TestCase):
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue