mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-18 15:33:08 +02:00
Issue warnings instead of errors for 'weird' tasks (#3646)
* Issue warnings instead of errors for 'weird' tasks * Support more comprehensive checks when adding a task
This commit is contained in:
parent
4bf6144daf
commit
96c72f3e06
5 changed files with 43 additions and 17 deletions
|
@ -284,10 +284,10 @@ class TestImportValidate(TestCase):
|
|||
self.t = Task()
|
||||
|
||||
def test_import_empty_json(self):
|
||||
"""Verify empty JSON is caught"""
|
||||
"""Verify empty JSON is ignored"""
|
||||
j = "{}"
|
||||
code, out, err = self.t.runError("import", input=j)
|
||||
self.assertIn("A task must have a description.", err)
|
||||
self.assertIn("Cannot import an empty task.", err)
|
||||
|
||||
def test_import_invalid_uuid(self):
|
||||
"""Verify invalid UUID is caught"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue