From f454eecafbeea1a3d99fef7947483be538833044 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Feb 2015 17:46:24 -0500 Subject: [PATCH] Unit Tests - Corrected expected output. - Added 'complete' task to the on-modify-misbehave4 test hook script. --- test/hooks.on-modify.t | 2 +- test/test_hooks/on-modify-misbehave4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hooks.on-modify.t b/test/hooks.on-modify.t index 1b6dde629..652470d83 100755 --- a/test/hooks.on-modify.t +++ b/test/hooks.on-modify.t @@ -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) diff --git a/test/test_hooks/on-modify-misbehave4 b/test/test_hooks/on-modify-misbehave4 index f004df9f0..acdf37b56 100644 --- a/test/test_hooks/on-modify-misbehave4 +++ b/test/test_hooks/on-modify-misbehave4 @@ -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: