BUG: Fix broken fixture resolution.

Make sure that WithDefaultDateBounds is last in everyone's mro().
This commit is contained in:
Scott Sanderson
2016-08-17 16:52:09 -04:00
parent 115f055c83
commit 5fe60c76a7
+6 -1
View File
@@ -235,6 +235,9 @@ class WithDefaultDateBounds(object):
ZiplineTestCase mixin which makes it possible to synchronize date bounds
across fixtures.
This fixture should always be the last fixture in bases of any fixture or
test case that uses it.
Attributes
----------
START_DATE : datetime
@@ -420,7 +423,9 @@ class WithTradingCalendars(object):
cls.trading_calendars[exchange] = get_calendar(cal_str)
class WithTradingEnvironment(WithAssetFinder, WithTradingCalendars):
class WithTradingEnvironment(WithAssetFinder,
WithTradingCalendars,
WithDefaultDateBounds):
"""
ZiplineTestCase mixin providing cls.env as a class-level fixture.