mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 08:56:43 +02:00
TW-1667: hooks: upon failure indicate which hook failed
- Thanks to Daniel Shahaf.
This commit is contained in:
parent
444e16fdd2
commit
b21e0baa47
14 changed files with 106 additions and 93 deletions
|
@ -147,7 +147,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 from hook script: on-add-misbehave6", err)
|
||||
|
||||
hook = self.t.hooks[hookname]
|
||||
hook.assertTriggeredCount(1)
|
||||
|
|
|
@ -146,7 +146,7 @@ class TestHooksOnModify(TestCase):
|
|||
|
||||
code, out, err = self.t("add foo")
|
||||
code, out, err = self.t.runError("1 modify +tag")
|
||||
self.assertIn("Hook Error: JSON Object missing 'uuid' attribute.", err)
|
||||
self.assertIn("Hook Error: JSON Object missing 'uuid' attribute from hook script: on-modify-misbehave6", err)
|
||||
|
||||
hook = self.t.hooks[hookname]
|
||||
hook.assertTriggeredCount(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue