@@ -107,10 +107,6 @@ def test_save_without_algorithm(self):
107107 strategy_file_path = os .path .join (strategy_dir , "strategy_one.py" )
108108 self .assertTrue (os .path .exists (strategy_file_path ))
109109
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-
114110 # Check if the metrics JSON file exists
115111 metrics_json_path = os .path .join (output_path , "metrics.json" )
116112 self .assertTrue (os .path .exists (metrics_json_path ))
@@ -126,8 +122,6 @@ def test_save_with_strategies_directory(self):
126122 with an Algorithm instance and a BacktestResult instance, which are required to create the report. Also, a risk-free rate is provided,
127123 to simulate an offline backtest run.
128124 """
129- algorithm = Algorithm ()
130- # algorithm.add_strategy(StrategyOne)
131125 snapshots = [
132126 PortfolioSnapshot (
133127 created_at = "2023-08-07 07:59:00" ,
@@ -200,15 +194,10 @@ def test_save_with_strategies_directory(self):
200194 strategy_file_path = os .path .join (strategy_dir , "strategy_one.py" )
201195 self .assertTrue (os .path .exists (strategy_file_path ))
202196
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-
207197 # Check if the metrics JSON file exists
208198 metrics_json_path = os .path .join (output_path , "metrics.json" )
209199 self .assertTrue (os .path .exists (metrics_json_path ))
210200
211-
212201 # Check if the results were saved correctly
213202 self .assertTrue (os .path .exists (os .path .join (output_path , "results.json" )))
214203 self .assertTrue (os .path .exists (os .path .join (output_path , "strategies" )))
0 commit comments