mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-14 12:10:24 +08:00
TST: Adds DailyEquityHistoryOnFuturesCalendarTestCase
Added as a minimal subclass of DailyEquityHistoryTestCase, swapping out just the primary calendar. This requires significant modifications to DailyEquityHistoryTestCase, to allow for a generic primary calendar.
This commit is contained in:
@@ -433,7 +433,10 @@ class WithTradingCalendars(object):
|
||||
|
||||
cls.trading_calendars = {}
|
||||
|
||||
for cal_str in cls.TRADING_CALENDAR_STRS:
|
||||
for cal_str in (
|
||||
set(cls.TRADING_CALENDAR_STRS) |
|
||||
{cls.TRADING_CALENDAR_PRIMARY_CAL}
|
||||
):
|
||||
# Set name to allow aliasing.
|
||||
calendar = get_calendar(cal_str)
|
||||
setattr(cls,
|
||||
|
||||
Reference in New Issue
Block a user