Unit Tests

- Corrected expected output.
- Added 'complete' task to the on-modify-misbehave4 test hook script.
This commit is contained in:
Paul Beckingham 2015-02-14 17:46:24 -05:00
parent f83702076b
commit f454eecafb
2 changed files with 2 additions and 2 deletions

View file

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

View file

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