mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 04:01:06 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user