Commit 61940634 authored by Jérome Perrin's avatar Jérome Perrin

standalone-shared/tests: only include full output when test fails

parent 7976a111
......@@ -13,12 +13,10 @@ class TestSiteStatus(unittest.TestCase):
def test_build(self):
"""Checks that site was correctly created"""
# expose output for debugging
print('Standard output:')
print(self.status_dict['stdout'])
print('Standard error:')
print(self.status_dict['stderr'])
self.assertTrue(self.status_dict['success'])
self.assertTrue(
self.status_dict['success'],
# expose output in case of failure for debugging
self.status_dict)
def test_build_time(self):
"""Asserts that site was built in acceptable time"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment