mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-18 11:50:11 +08:00
DEP: Removes use of 'count'-defined test sources
Test sources are now defined by the sim_params period_start and period_end, rather than by the period_start and a defined 'count' of bars. This allows us to consider the sim_params.period_end as the canonical definition of the end of a simulation.
This commit is contained in:
@@ -134,7 +134,6 @@ class AlgorithmGeneratorTestCase(TestCase):
|
||||
algo = TestAlgo(self, sim_params=sim_params)
|
||||
trade_source = factory.create_daily_trade_source(
|
||||
[8229],
|
||||
200,
|
||||
sim_params
|
||||
)
|
||||
algo.set_sources([trade_source])
|
||||
@@ -205,7 +204,6 @@ class AlgorithmGeneratorTestCase(TestCase):
|
||||
algo = TestAlgo(self, sim_params=sim_params)
|
||||
trade_source = factory.create_daily_trade_source(
|
||||
[8229],
|
||||
3,
|
||||
sim_params
|
||||
)
|
||||
algo.set_sources([trade_source])
|
||||
|
||||
Reference in New Issue
Block a user