mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
MAINT: Updates from Joe's PR feedback.
This commit is contained in:
@@ -37,12 +37,12 @@ class CalendarAliasTestCase(ZiplineTestCase):
|
||||
|
||||
def test_follow_alias_chain(self):
|
||||
self.assertIs(
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
self.dispatcher.get_calendar('ICE_ALIAS'),
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
)
|
||||
self.assertIs(
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
self.dispatcher.get_calendar('ICE_ALIAS_ALIAS'),
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
)
|
||||
|
||||
def test_add_new_aliases(self):
|
||||
@@ -52,8 +52,8 @@ class CalendarAliasTestCase(ZiplineTestCase):
|
||||
self.dispatcher.register_calendar_alias('NOT_ICE', 'ICE')
|
||||
|
||||
self.assertIs(
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
self.dispatcher.get_calendar('NOT_ICE'),
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
)
|
||||
|
||||
self.dispatcher.register_calendar_alias(
|
||||
@@ -61,8 +61,8 @@ class CalendarAliasTestCase(ZiplineTestCase):
|
||||
'ICE_ALIAS_ALIAS'
|
||||
)
|
||||
self.assertIs(
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
self.dispatcher.get_calendar('ICE_ALIAS_ALIAS_ALIAS'),
|
||||
self.dispatcher.get_calendar('ICE'),
|
||||
)
|
||||
|
||||
def test_remove_aliases(self):
|
||||
|
||||
@@ -369,7 +369,7 @@ class BundleCoreTestCase(WithInstanceTmpDir,
|
||||
"""
|
||||
if not self.bundles:
|
||||
@self.register('bundle',
|
||||
calendar_name=('NYSE'),
|
||||
calendar_name='NYSE',
|
||||
start_session=pd.Timestamp('2014', tz='UTC'),
|
||||
end_session=pd.Timestamp('2014', tz='UTC'))
|
||||
def _(environ,
|
||||
|
||||
Reference in New Issue
Block a user