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:
Andrew Daniels
2017-05-09 09:34:38 -04:00
parent f088afc1e1
commit b2a39b4ae4
2 changed files with 106 additions and 21 deletions
+4 -1
View File
@@ -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,