mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Corrected expected output. - Added 'complete' task to the on-modify-misbehave4 test hook script.
This commit is contained in:
parent
f83702076b
commit
f454eecafb
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ class TestHooksOnModify(TestCase):
|
|||
|
||||
code, out, err = self.t(("add", "foo"))
|
||||
code, out, err = self.t.runError(("1", "modify", "+tag"))
|
||||
self.assertIn("ERROR DIFFERENT JSON", err)
|
||||
self.assertIn("Hook Error: JSON must be for the same task:", err)
|
||||
self.t.hooks[hookname].assertTriggered()
|
||||
self.t.hooks[hookname].assertTriggeredCount(1)
|
||||
self.t.hooks[hookname].assertExitcode(0)
|
||||
|
|
|
@ -12,7 +12,7 @@ read modified_task
|
|||
# Output:
|
||||
# - JSON, modified or unmodified.
|
||||
# - Optional feedback/error.
|
||||
echo '{"description":"different","status":"pending"}'
|
||||
echo '{"description":"different","status":"pending","uuid":"bad"}'
|
||||
echo 'FEEDBACK'
|
||||
|
||||
# Status:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue