Add test for successful_buys

This commit is contained in:
Matthias 2023-03-12 16:29:18 +01:00
parent b5c4f9ebe2
commit f5848ea891

View File

@ -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: