mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
Merge pull request #22 from quantopian/fix_batch_transform_days
BUG: batch_transform was wrongly updating when days < refresh_period.
This commit is contained in:
@@ -327,6 +327,14 @@ class TestBatchTransform(TestCase):
|
||||
self.assertEqual(algo.history_return_price_market_aware[:2],
|
||||
[None, None],
|
||||
"First two iterations should return None")
|
||||
self.assertEqual(algo.history_return_more_days_than_refresh[:3],
|
||||
[None, None, None],
|
||||
"First five iterations should return None")
|
||||
self.assertTrue(isinstance(
|
||||
algo.history_return_more_days_than_refresh[4],
|
||||
pd.DataFrame),
|
||||
"Sixth iteration should not be None"
|
||||
)
|
||||
|
||||
# test overloaded class
|
||||
for test_history in [algo.history_return_price_class,
|
||||
|
||||
Reference in New Issue
Block a user