Improve naming of new file

This commit is contained in:
Matthias
2023-06-25 17:11:13 +02:00
parent 794bca1379
commit 65e8359908
3 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,12 @@
# flake8: noqa: F401 # flake8: noqa: F401
from freqtrade.optimize.optimize_reports.bt_output import (show_backtest_result,
show_backtest_results,
show_sorted_pairlist,
text_table_add_metrics,
text_table_bt_results,
text_table_exit_reason,
text_table_periodic_breakdown,
text_table_strategy, text_table_tags)
from freqtrade.optimize.optimize_reports.optimize_reports import ( from freqtrade.optimize.optimize_reports.optimize_reports import (
generate_all_periodic_breakdown_stats, generate_backtest_stats, generate_daily_stats, generate_all_periodic_breakdown_stats, generate_backtest_stats, generate_daily_stats,
generate_edge_table, generate_exit_reason_stats, generate_pair_metrics, generate_edge_table, generate_exit_reason_stats, generate_pair_metrics,
@@ -6,11 +14,3 @@ from freqtrade.optimize.optimize_reports.optimize_reports import (
generate_strategy_stats, generate_tag_metrics, generate_trade_signal_candles, generate_strategy_stats, generate_tag_metrics, generate_trade_signal_candles,
generate_trading_stats, generate_wins_draws_losses, store_backtest_analysis_results, generate_trading_stats, generate_wins_draws_losses, store_backtest_analysis_results,
store_backtest_stats) store_backtest_stats)
from freqtrade.optimize.optimize_reports.visualization import (show_backtest_result,
show_backtest_results,
show_sorted_pairlist,
text_table_add_metrics,
text_table_bt_results,
text_table_exit_reason,
text_table_periodic_breakdown,
text_table_strategy, text_table_tags)

View File

@@ -1437,7 +1437,7 @@ def test_backtest_start_multi_strat(default_conf, mocker, caplog, testdatadir):
strattable_mock = MagicMock() strattable_mock = MagicMock()
strat_summary = MagicMock() strat_summary = MagicMock()
mocker.patch.multiple('freqtrade.optimize.optimize_reports.visualization', mocker.patch.multiple('freqtrade.optimize.optimize_reports.bt_output',
text_table_bt_results=text_table_mock, text_table_bt_results=text_table_mock,
text_table_strategy=strattable_mock, text_table_strategy=strattable_mock,
) )