mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added test for hook details in 'diagnostics' command.
This commit is contained in:
parent
e96ef5e729
commit
8b2eac62ba
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ class TestHooksOnLaunch(TestCase):
|
|||
self.assertEqual('data' in taskenv, True, 'data:...')
|
||||
self.assertEqual('version' in taskenv, True, 'version:...')
|
||||
|
||||
def test_onlaunch_buildin_env_diag(self):
|
||||
"""Verify that 'diagnostics' can see hook details"""
|
||||
hookname = 'on-launch-good-env'
|
||||
self.t.hooks.add_default(hookname, log=True)
|
||||
|
||||
code, out, err = self.t("diagnostics")
|
||||
self.assertIn("on-launch-good-env (executable)", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue