mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Fixed exected error for on-add-misbehave5. This highlights a potential error in the test suite with the one failing test.
This commit is contained in:
parent
4213afd408
commit
c5a2b7f759
2 changed files with 7 additions and 13 deletions
|
@ -121,7 +121,7 @@ class TestHooksOnAdd(TestCase):
|
|||
self.t.hooks.add_default(hookname, log=True)
|
||||
|
||||
code, out, err = self.t.runError(("add", "foo"))
|
||||
self.assertIn("ERROR SYNTACTICALLY WRONG JSON", err)
|
||||
self.assertIn("Hook Error: JSON syntax error in: {\"}", err)
|
||||
self.t.hooks[hookname].assertTriggered()
|
||||
self.t.hooks[hookname].assertTriggeredCount(1)
|
||||
self.t.hooks[hookname].assertExitcode(0)
|
||||
|
@ -134,7 +134,7 @@ class TestHooksOnAdd(TestCase):
|
|||
self.t.hooks.add_default(hookname, log=True)
|
||||
|
||||
code, out, err = self.t.runError(("add", "foo"))
|
||||
self.assertIn("Hook Error: JSON Object missing 'uuid' attribute:", err)
|
||||
self.assertIn("Hook Error: JSON Object missing 'uuid' attribute.", err)
|
||||
self.t.hooks[hookname].assertTriggered()
|
||||
self.t.hooks[hookname].assertTriggeredCount(1)
|
||||
self.t.hooks[hookname].assertExitcode(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue