mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-28 22:35:46 +08:00
Logging compat for test_transforms.
This commit is contained in:
@@ -2,6 +2,8 @@ from datetime import timedelta
|
||||
from collections import defaultdict
|
||||
from unittest2 import TestCase
|
||||
|
||||
from logbook.compat import LoggingHandler
|
||||
|
||||
import zipline.utils.factory as factory
|
||||
from zipline.finance.vwap import DailyVWAP, VWAPTransform
|
||||
from zipline.finance.returns import ReturnsFromPriorClose
|
||||
@@ -22,6 +24,11 @@ class ZiplineWithTransformsTestCase(TestCase):
|
||||
'allocator':allocator,
|
||||
'sid':133
|
||||
}
|
||||
self.log_handler = LoggingHandler()
|
||||
self.log_handler.push_application()
|
||||
|
||||
def tearDown(self):
|
||||
self.log_handler.pop_application()
|
||||
|
||||
def test_vwap_tnfm(self):
|
||||
zipline = SimulatedTrading.create_test_zipline(
|
||||
|
||||
Reference in New Issue
Block a user