Capture logs with FakeLogging Fixture

Capture logs to attach them on exceptions to simplify the debugging of
errors in tests when they occur.

Change-Id: I5c1b5c306aba37789a8d41eabf65e0ac628af838
This commit is contained in:
Darragh Bailey
2015-09-22 01:20:37 +01:00
committed by Darragh Bailey
parent 709f233bca
commit 9bfbffa559
22 changed files with 45 additions and 31 deletions

View File

@@ -22,7 +22,7 @@ from jenkins_jobs.modules import triggers
from tests.base import get_scenarios, BaseTestCase
class TestCaseModuleTriggers(TestWithScenarios, TestCase, BaseTestCase):
class TestCaseModuleTriggers(TestWithScenarios, BaseTestCase, TestCase):
fixtures_path = os.path.join(os.path.dirname(__file__), 'fixtures')
scenarios = get_scenarios(fixtures_path)
klass = triggers.Triggers