MCPcopy
hub / github.com/quantopian/zipline / init_class_fixtures

Method init_class_fixtures

tests/test_history.py:83–107  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

81 # - merger on 2015-01-05 and 2015-01-06
82 @classmethod
83 def init_class_fixtures(cls):
84 super(WithHistory, cls).init_class_fixtures()
85 cls.trading_days = cls.trading_calendar.sessions_in_range(
86 cls.TRADING_START_DT,
87 cls.TRADING_END_DT
88 )
89
90 cls.ASSET1 = cls.asset_finder.retrieve_asset(1)
91 cls.ASSET2 = cls.asset_finder.retrieve_asset(2)
92 cls.ASSET3 = cls.asset_finder.retrieve_asset(3)
93 cls.SPLIT_ASSET = cls.asset_finder.retrieve_asset(
94 cls.SPLIT_ASSET_SID,
95 )
96 cls.DIVIDEND_ASSET = cls.asset_finder.retrieve_asset(
97 cls.DIVIDEND_ASSET_SID,
98 )
99 cls.MERGER_ASSET = cls.asset_finder.retrieve_asset(
100 cls.MERGER_ASSET_SID,
101 )
102 cls.HALF_DAY_TEST_ASSET = cls.asset_finder.retrieve_asset(
103 cls.HALF_DAY_TEST_ASSET_SID,
104 )
105 cls.SHORT_ASSET = cls.asset_finder.retrieve_asset(
106 cls.SHORT_ASSET_SID,
107 )
108
109 @classmethod
110 def make_equity_info(cls):

Callers

nothing calls this directly

Calls 1

retrieve_assetMethod · 0.80

Tested by

no test coverage detected