From 11fa56e5d9a6f682818186e2cf3cebe8da1a4a7d Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Fri, 28 Dec 2012 12:06:38 -0500 Subject: [PATCH] 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. --- tests/test_perf_tracking.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_perf_tracking.py b/tests/test_perf_tracking.py index aea79660..15c45a83 100644 --- a/tests/test_perf_tracking.py +++ b/tests/test_perf_tracking.py @@ -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