Breaks up performance tracker tests.

The tests using performance tracker don't need the same setup
as the other performance module tests, breaking out so that
we don't call it needlessly.
This commit is contained in:
Eddie Hebert
2012-12-28 12:06:38 -05:00
parent 2939cce155
commit 11fa56e5d9
+4 -1
View File
@@ -31,7 +31,7 @@ from zipline.protocol import DATASOURCE_TYPE
from zipline.finance.trading import TradingEnvironment
class PerformanceTestCase(unittest.TestCase):
class TestPerformance(unittest.TestCase):
def setUp(self):
self.onesec = datetime.timedelta(seconds=1)
@@ -536,6 +536,9 @@ shares in position"
"should be -400 for all trades and transactions in period"
)
class TestPerformanceTracker(unittest.TestCase):
@parameterized.expand([
# This date range covers Columbus day,
# however Columbus day is not a market holiday