mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-28 21:10:25 +08:00
TST: Finishes fixing fixes for the fixed fixtures
This commit is contained in:
@@ -1399,8 +1399,7 @@ class TestAlgoScript(WithLogger,
|
||||
|
||||
@classmethod
|
||||
def make_daily_bar_data(cls):
|
||||
days = len(cls.trading_schedule.execution_days_in_range(cls.START_DATE,
|
||||
cls.END_DATE))
|
||||
days = len(cls.bcolz_daily_bar_days)
|
||||
return trades_by_sid_to_dfs(
|
||||
{
|
||||
0: factory.create_trade_history(
|
||||
@@ -1418,7 +1417,7 @@ class TestAlgoScript(WithLogger,
|
||||
cls.sim_params,
|
||||
cls.trading_schedule)
|
||||
},
|
||||
index=cls.sim_params.trading_days,
|
||||
index=cls.bcolz_daily_bar_days,
|
||||
)
|
||||
|
||||
def test_noop(self):
|
||||
|
||||
@@ -470,9 +470,9 @@ class MinuteEquityHistoryTestCase(WithHistory, ZiplineTestCase):
|
||||
|
||||
asset2 = cls.asset_finder.retrieve_asset(2)
|
||||
data[asset2.sid] = create_minute_df_for_asset(
|
||||
cls.env,
|
||||
cls.trading_schedule,
|
||||
asset2.start_date,
|
||||
cls.env.previous_trading_day(asset2.end_date),
|
||||
cls.trading_schedule.previous_execution_day(asset2.end_date),
|
||||
start_val=2,
|
||||
minute_blacklist=[
|
||||
pd.Timestamp('2015-01-08 14:31', tz='UTC'),
|
||||
|
||||
Reference in New Issue
Block a user