mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 15:37:45 +08:00
refactoring of algorithm to make it work for both batch style run method, and generator style consumption. removed the portfolio property from the data parameter. added set_slippage and set_commission methods to algorithm. removed timeout tracking.
This commit is contained in:
@@ -65,7 +65,6 @@ class TestTransformAlgorithm(TestCase):
|
||||
def test_transform_registered(self):
|
||||
algo = TestRegisterTransformAlgorithm(sids=[133])
|
||||
algo.run(self.source)
|
||||
assert algo.get_sid_filter() == algo.sids == [133]
|
||||
assert 'mavg' in algo.registered_transforms
|
||||
assert algo.registered_transforms['mavg']['args'] == (['price'],)
|
||||
assert algo.registered_transforms['mavg']['kwargs'] == \
|
||||
|
||||
Reference in New Issue
Block a user