Add test for backtest via APII

This commit is contained in:
Matthias
2021-04-01 19:59:49 +02:00
parent 804d99cce9
commit b44d215b90
2 changed files with 69 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ async def api_start_backtest(bt_settings: BacktestRequest, background_tasks: Bac
ApiServer._bt.results = generate_backtest_stats(
ApiServer._backtestdata, ApiServer._bt.all_results,
min_date=min_date, max_date=max_date)
logger.info("Backtesting finished.")
logger.info("Backtest finished.")
finally:
ApiServer._bgtask_running = False
@@ -110,7 +110,7 @@ def api_get_backtest():
"running": False,
"step": "",
"progress": 0,
"status_msg": "Backtesting not yet executed"
"status_msg": "Backtest not yet executed"
}
return {
@@ -145,5 +145,5 @@ def api_delete_backtest():
"running": False,
"step": "",
"progress": 0,
"status_msg": "Backtesting reset",
"status_msg": "Backtest reset",
}