@@ -107,10 +107,6 @@ def test_save_without_algorithm(self):
107
107
strategy_file_path = os .path .join (strategy_dir , "strategy_one.py" )
108
108
self .assertTrue (os .path .exists (strategy_file_path ))
109
109
110
- # Check if the report HTML file exists
111
- report_html_path = os .path .join (output_path , "report.html" )
112
- self .assertTrue (os .path .exists (report_html_path ))
113
-
114
110
# Check if the metrics JSON file exists
115
111
metrics_json_path = os .path .join (output_path , "metrics.json" )
116
112
self .assertTrue (os .path .exists (metrics_json_path ))
@@ -126,8 +122,6 @@ def test_save_with_strategies_directory(self):
126
122
with an Algorithm instance and a BacktestResult instance, which are required to create the report. Also, a risk-free rate is provided,
127
123
to simulate an offline backtest run.
128
124
"""
129
- algorithm = Algorithm ()
130
- # algorithm.add_strategy(StrategyOne)
131
125
snapshots = [
132
126
PortfolioSnapshot (
133
127
created_at = "2023-08-07 07:59:00" ,
@@ -200,15 +194,10 @@ def test_save_with_strategies_directory(self):
200
194
strategy_file_path = os .path .join (strategy_dir , "strategy_one.py" )
201
195
self .assertTrue (os .path .exists (strategy_file_path ))
202
196
203
- # Check if the report HTML file exists
204
- report_html_path = os .path .join (output_path , "report.html" )
205
- self .assertTrue (os .path .exists (report_html_path ))
206
-
207
197
# Check if the metrics JSON file exists
208
198
metrics_json_path = os .path .join (output_path , "metrics.json" )
209
199
self .assertTrue (os .path .exists (metrics_json_path ))
210
200
211
-
212
201
# Check if the results were saved correctly
213
202
self .assertTrue (os .path .exists (os .path .join (output_path , "results.json" )))
214
203
self .assertTrue (os .path .exists (os .path .join (output_path , "strategies" )))
0 commit comments