Test: Added test for hook details in 'diagnostics' command.

This commit is contained in:
Paul Beckingham 2015-10-28 14:58:45 -04:00
parent e96ef5e729
commit 8b2eac62ba

View file

@ -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