mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Successful hook tests now query the task to make sure processing continued. Could be better.
This commit is contained in:
parent
19674ee339
commit
87d00698db
2 changed files with 7 additions and 0 deletions
|
@ -56,6 +56,9 @@ class TestHooksOnAdd(TestCase):
|
|||
logs = hook.get_logs()
|
||||
self.assertEqual(logs["output"]["msgs"][0], "FEEDBACK")
|
||||
|
||||
code, out, err = self.t(("1", "info"))
|
||||
self.assertIn("Description foo", out)
|
||||
|
||||
def test_onadd_builtin_reject(self):
|
||||
"""on-add-reject - a well-behaved, failing, on-add hook."""
|
||||
hookname = 'on-add-reject'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue