ENH: made exchange a required parameter to Asset and its subclasses

This required updating a lot of tests.
This commit is contained in:
Jean Bredeche
2016-08-02 23:21:39 -04:00
parent 17e390a379
commit e6af4e4f1b
12 changed files with 151 additions and 92 deletions
+5 -2
View File
@@ -85,7 +85,8 @@ class SecurityListTestCase(WithLogger, WithTradingCalendar, ZiplineTestCase):
equities=pd.DataFrame.from_records([{
'start_date': cls.start,
'end_date': end,
'symbol': symbol
'symbol': symbol,
'exchange': "TEST",
} for symbol in symbols]),
))
@@ -103,7 +104,8 @@ class SecurityListTestCase(WithLogger, WithTradingCalendar, ZiplineTestCase):
equities=pd.DataFrame.from_records([{
'start_date': sp2.start_session,
'end_date': sp2.end_session,
'symbol': symbol
'symbol': symbol,
'exchange': "TEST",
} for symbol in symbols]),
))
@@ -267,6 +269,7 @@ class SecurityListTestCase(WithLogger, WithTradingCalendar, ZiplineTestCase):
'symbol': 'BZQ',
'start_date': sim_params.start_session,
'end_date': sim_params.end_session,
'exchange': "TEST",
}])
with TempDirectory() as new_tempdir, \
security_list_copy(), \