mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests - Update template.t to include assertValidJSONOutput
This commit is contained in:
parent
1bd26fe9ab
commit
ef583dedea
1 changed files with 4 additions and 0 deletions
|
@ -153,6 +153,10 @@ sys.exit(0)
|
|||
hook.assertTriggeredCount(1)
|
||||
hook.assertExitcode(0)
|
||||
|
||||
# Ensure output from hook is valid JSON
|
||||
# (according to python's JSON parser)
|
||||
hook.assertValidJSONOutput()
|
||||
|
||||
# Some message output from the hook
|
||||
self.assertEqual(logs["output"]["msgs"][0],
|
||||
"Hello from the template hook")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue