Update test_optimize with devel flag.

This commit is contained in:
Stephen Diehl
2012-07-06 12:06:58 -04:00
parent 7ffdff64a1
commit e5fdc542d5
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -3,9 +3,18 @@ Simulator hosts all the components necessary to execute a simluation.
See :py:method""
"""
import logbook
import threading
from zipline.core.simulatorref import SimulatorBase
log = logbook.Logger('Dev Simulator')
DEPRECATION_WARNING = """
WARNING WARNING WARNING
THE DEVSIMULATOR IS DEPRECATED, IT WILL NOT BEHAVE LIKE ANY OTHER
SYSTEM USED IN TESTS OR IN PRODUCTION
"""
class AddressAllocator(object):
"""
Produces a iterator of 10000 sockets to allocate as needed.
@@ -38,6 +47,8 @@ class Simulator(SimulatorBase):
self.subthreads = []
self.running = False
log.warn(DEPRECATION_WARNING)
@property
def get_id(self):
return 'Simple Simulator'
+1
View File
@@ -128,6 +128,7 @@ def create_predictable_zipline(config, offset=0, simulate=True):
config['trade_source'] = source
config['environment'] = trading_environment
config['simulation_style'] = SIMULATION_STYLE.FIXED_SLIPPAGE
config['devel'] = True
zipline = SimulatedTrading.create_test_zipline(**config)