mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added debug hooks mode tests
This commit is contained in:
parent
5fa62565ea
commit
649604e015
1 changed files with 9 additions and 0 deletions
|
@ -64,6 +64,15 @@ class TestDebugMode(TestCase):
|
|||
self.assertIn("CLI2::prepareFilter", err)
|
||||
self.assertIn("Infix parsed", err)
|
||||
|
||||
def test_debug_hooks_output(self):
|
||||
"""Verify debug hooks mode generates interesting output"""
|
||||
code, out, err = self.t("list rc.debug.hooks=2")
|
||||
|
||||
# Debug
|
||||
self.assertIn("Config::load", err)
|
||||
self.assertIn("Filtered 2 tasks --> 2 tasks [pending only]", err)
|
||||
self.assertIn("Perf task", err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue