MAINT: Updates from Joe's PR feedback.

This commit is contained in:
Scott Sanderson
2016-09-07 20:42:19 -04:00
parent 977d1fa0b9
commit d6ad73e064
7 changed files with 26 additions and 17 deletions
+4 -4
View File
@@ -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):
+1 -1
View File
@@ -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,