Skip to content

Commit 802a245

Browse files
author
Tonny@Home
committed
test: fix missing mock for SimulatorExecutor for rolling train test
1 parent 3044b6c commit 802a245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/quantpits/scripts/test_rolling_train.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ def test_run_combined_backtest_full(self, mock_env):
934934

935935
with mock.patch('qlib.workflow.R', create=True) as mock_r, \
936936
mock.patch('qlib.backtest.backtest') as mock_bt, \
937+
mock.patch('qlib.backtest.executor.SimulatorExecutor', create=True), \
937938
mock.patch('strategy.create_backtest_strategy'), \
938939
mock.patch('strategy.load_strategy_config'), \
939940
mock.patch('strategy.get_backtest_config') as mock_get_bt_cfg, \

0 commit comments

Comments
 (0)