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.
This commit is contained in:
Dustin J. Mitchell 2024-05-15 08:11:45 -04:00 committed by GitHub
parent aebbfaff98
commit 8a807af2ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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