test: add Test-case to ensure hyperopt logging

This commit is contained in:
Matthias
2025-10-19 12:59:08 +02:00
parent 8526733b36
commit 44ec500744
2 changed files with 11 additions and 1 deletions
@@ -1,5 +1,7 @@
# pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement
import logging
from pandas import DataFrame
from strategy_test_v3 import StrategyTestV3
@@ -7,6 +9,9 @@ import freqtrade.vendor.qtpylib.indicators as qtpylib
from freqtrade.strategy import BooleanParameter, DecimalParameter, IntParameter, RealParameter
logger = logging.getLogger(__name__)
class HyperoptableStrategy(StrategyTestV3):
"""
Default Strategy provided by freqtrade bot.
@@ -55,6 +60,7 @@ class HyperoptableStrategy(StrategyTestV3):
def bot_loop_start(self, **kwargs):
self.bot_loop_started = True
logger.info("Test: Bot loop started")
def bot_start(self, **kwargs) -> None:
self.bot_started = True