mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
aebbfaff98
commit
8a807af2ef
1 changed files with 4 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue