mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit Tests
- Corrected expected output from the on-modify-misbehave4 test hook script. - Moved JSON syntax error details to debug output.
This commit is contained in:
parent
f454eecafb
commit
adac566665
2 changed files with 3 additions and 2 deletions
|
@ -117,7 +117,7 @@ class TestHooksOnModify(TestCase):
|
|||
|
||||
code, out, err = self.t(("add", "foo"))
|
||||
code, out, err = self.t.runError(("1", "modify", "+tag"))
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue