From 8a807af2ef1cc99529beda4697fac2b39c727cec Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Wed, 15 May 2024 08:11:45 -0400 Subject: [PATCH] Add test that on-add returning 1 does not add task (#3457) This test existed, but didn't notice that the task was actually added. The bug itself was fixed in #3443. --- test/hooks.on-add.test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/hooks.on-add.test.py b/test/hooks.on-add.test.py index d3d057f56..66fdf2b67 100755 --- a/test/hooks.on-add.test.py +++ b/test/hooks.on-add.test.py @@ -89,6 +89,10 @@ class TestHooksOnAdd(TestCase): logs = hook.get_logs() self.assertEqual(logs["output"]["msgs"][0], "FEEDBACK") + # task was not added + code, out, err = self.t.runError("1 info") + self.assertIn("No matches", err) + def test_onadd_builtin_misbehave1(self): """on-add-misbehave1 - does not consume input.""" hookname = 'on-add-misbehave1'