mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 05:39:30 +08:00
BUG: specify UTC and no name-checking.
DOC: fix doc. MAINT: revert to using getitem.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Tests for the reference loader for EarningsCalendar.
|
||||
Tests for the reference loader for Buyback Authorizations.
|
||||
"""
|
||||
from functools import partial
|
||||
from unittest import TestCase
|
||||
@@ -103,7 +103,7 @@ param_dates = list(gen_calendars(
|
||||
'2014-01-10',
|
||||
'2014-01-15',
|
||||
'2014-01-20',
|
||||
]),
|
||||
], utc=True),
|
||||
))
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ class BuybackAuthLoaderCommonTest(object):
|
||||
for col_name in self.cols.keys():
|
||||
assert_series_equal(result[col_name].xs(sid, level=1),
|
||||
self.cols[col_name][sid],
|
||||
sid)
|
||||
check_names=False)
|
||||
|
||||
|
||||
class CashBuybackAuthLoaderTestCase(TestCase, BuybackAuthLoaderCommonTest):
|
||||
|
||||
@@ -392,11 +392,11 @@ class EarningsCalendarLoaderInferTimestampTestCase(TestCase):
|
||||
name=ANNOUNCEMENT_FIELD_NAME),
|
||||
)
|
||||
assert_series_equal(
|
||||
loader.events_by_sid[1].loc[:, ANNOUNCEMENT_FIELD_NAME],
|
||||
loader.events_by_sid[1][ANNOUNCEMENT_FIELD_NAME],
|
||||
pd.Series(
|
||||
index=announcement_dates[1].loc[:, TS_FIELD_NAME],
|
||||
index=announcement_dates[1][TS_FIELD_NAME],
|
||||
data=np.array(
|
||||
announcement_dates[1].loc[:, ANNOUNCEMENT_FIELD_NAME]
|
||||
announcement_dates[1][ANNOUNCEMENT_FIELD_NAME]
|
||||
),
|
||||
name=ANNOUNCEMENT_FIELD_NAME
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user