From 195c2fffb694e7e6ca8381fb486268ebf254fa45 Mon Sep 17 00:00:00 2001 From: Maya Tydykov Date: Tue, 8 Mar 2016 15:48:37 -0500 Subject: [PATCH] DOC: update doc. DOC: update docs. --- zipline/utils/test_utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zipline/utils/test_utils.py b/zipline/utils/test_utils.py index 652258fa..9db9e3a3 100644 --- a/zipline/utils/test_utils.py +++ b/zipline/utils/test_utils.py @@ -888,8 +888,17 @@ def make_test_handler(testcase, *args, **kwargs): Returns a TestHandler which will be used by the given testcase. This handler can be used to test log messages. + Parameters + ---------- testcase: unittest.TestCase The test class in which the log handler will be used. + *args, **kwargs + Forwarded to the new TestHandler object. + + Returns + ------- + handler: logbook.TestHandler + The handler to use for the test case. """ handler = TestHandler(*args, **kwargs) testcase.addCleanup(handler.close)