mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 09:40:22 +08:00
support of qexec refactoring
This commit is contained in:
@@ -21,7 +21,6 @@ from zipline.utils.test_utils import (
|
||||
DEFAULT_TIMEOUT = 15 # seconds
|
||||
EXTENDED_TIMEOUT = 90
|
||||
|
||||
allocator = AddressAllocator(1000)
|
||||
|
||||
class ExceptionTestCase(TestCase):
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ from nose.tools import timed
|
||||
import zipline.utils.factory as factory
|
||||
|
||||
from zipline.finance.trading import TradingEnvironment
|
||||
from zipline.core.devsimulator import AddressAllocator
|
||||
from zipline.lines import SimulatedTrading
|
||||
from zipline.finance.performance import PerformanceTracker
|
||||
from zipline.utils.protocol_utils import ndict
|
||||
@@ -26,7 +25,6 @@ from zipline.utils.test_utils import \
|
||||
DEFAULT_TIMEOUT = 15 # seconds
|
||||
EXTENDED_TIMEOUT = 90
|
||||
|
||||
allocator = AddressAllocator(1000)
|
||||
|
||||
class FinanceTestCase(TestCase):
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@ from zipline.core.devsimulator import AddressAllocator
|
||||
DEFAULT_TIMEOUT = 15 # seconds
|
||||
EXTENDED_TIMEOUT = 90
|
||||
|
||||
allocator = AddressAllocator(1000)
|
||||
|
||||
from zipline.utils.test_utils import setup_logger, teardown_logger
|
||||
|
||||
class TestUpDown(TestCase):
|
||||
@@ -26,7 +24,6 @@ class TestUpDown(TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.zipline_test_config = {
|
||||
'allocator' : allocator,
|
||||
'sid' : 133,
|
||||
'trade_count' : 5,
|
||||
'amplitude' : 30,
|
||||
|
||||
+2
-2
@@ -112,9 +112,9 @@ class SimulatedTrading(object):
|
||||
self.gen = self.trading_client.simulate(self.with_tnfms)
|
||||
|
||||
def __iter__(self):
|
||||
return self.gen
|
||||
return self
|
||||
|
||||
def __next__(self):
|
||||
def next(self):
|
||||
return self.gen.next()
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user