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:
committed by
GitHub
parent
aebbfaff98
commit
8a807af2ef
@@ -89,6 +89,10 @@ class TestHooksOnAdd(TestCase):
|
|||||||
logs = hook.get_logs()
|
logs = hook.get_logs()
|
||||||
self.assertEqual(logs["output"]["msgs"][0], "FEEDBACK")
|
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):
|
def test_onadd_builtin_misbehave1(self):
|
||||||
"""on-add-misbehave1 - does not consume input."""
|
"""on-add-misbehave1 - does not consume input."""
|
||||||
hookname = 'on-add-misbehave1'
|
hookname = 'on-add-misbehave1'
|
||||||
|
|||||||
Reference in New Issue
Block a user