From f5848ea891723fcdf33e8794f2018c0547f8252d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 12 Mar 2023 16:29:18 +0100 Subject: [PATCH] Add test for successful_buys --- tests/test_strategy_updater.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_strategy_updater.py b/tests/test_strategy_updater.py index 7205a609d..4aad152bf 100644 --- a/tests/test_strategy_updater.py +++ b/tests/test_strategy_updater.py @@ -84,9 +84,11 @@ def test_strategy_updater_method_params(default_conf, caplog) -> None: instance_strategy_updater = StrategyUpdater() modified_code = instance_strategy_updater.update_code(""" def confirm_trade_exit(sell_reason: str): + nr_orders = trades.nr_of_successful_buys pass """) assert "exit_reason" in modified_code + assert "nr_orders = trades.nr_of_successful_entries" in modified_code def test_strategy_updater_dicts(default_conf, caplog) -> None: