mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
MAINT: Removes references to trading.environment
This commit is contained in:
@@ -203,11 +203,6 @@ class FFCAlgorithmTestCase(TestCase):
|
||||
# Do the same checks in before_trading_start
|
||||
before_trading_start = handle_data
|
||||
|
||||
# Create fresh trading environment as the algo.run()
|
||||
# method will attempt to write data to disk, and could
|
||||
# violate SQL constraints.
|
||||
trading.environment = trading.TradingEnvironment()
|
||||
|
||||
algo = TradingAlgorithm(
|
||||
initialize=initialize,
|
||||
handle_data=handle_data,
|
||||
|
||||
@@ -208,9 +208,6 @@ class AlgorithmGeneratorTestCase(TestCase):
|
||||
Ensure the pipeline of generators are in sync, at least as far as
|
||||
their current dates.
|
||||
"""
|
||||
# Ensure we are pointing to the TradingEnvironment for this class
|
||||
trading.environment = AlgorithmGeneratorTestCase.env
|
||||
|
||||
sim_params = factory.create_simulation_parameters(
|
||||
start=datetime(2008, 1, 1, tzinfo=pytz.utc),
|
||||
end=datetime(2008, 1, 5, tzinfo=pytz.utc),
|
||||
|
||||
Reference in New Issue
Block a user