mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-15 12:15:22 +08:00
TST: tests removing of expired data and removes ffill in DataPanelSource
This commit is contained in:
@@ -937,6 +937,16 @@ class InvalidOrderAlgorithm(TradingAlgorithm):
|
||||
style=style)
|
||||
|
||||
|
||||
class TestRemoveDataAlgo(TradingAlgorithm):
|
||||
def initialize(self, *args, **kwargs):
|
||||
self.data = np.zeros(6)
|
||||
self.i = 0
|
||||
|
||||
def handle_data(self, data):
|
||||
self.data[self.i] = len(data)
|
||||
self.i += 1
|
||||
|
||||
|
||||
##############################
|
||||
# Quantopian style algorithms
|
||||
|
||||
|
||||
Reference in New Issue
Block a user