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:
Dustin J. Mitchell 2024-10-22 15:15:51 -04:00 committed by GitHub
parent 4bf6144daf
commit 96c72f3e06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 43 additions and 17 deletions

View file

@ -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"""