test: add test for adjust_order_price and adjust_entry_price collision

This commit is contained in:
Matthias
2025-02-20 19:22:03 +01:00
parent 67ce9a41f2
commit dd8938ced2
2 changed files with 38 additions and 1 deletions
+4
View File
@@ -460,6 +460,10 @@ def test_missing_implements(default_conf, caplog):
):
StrategyResolver.load_strategy(default_conf)
default_conf["strategy"] = "TestStrategyAdjustOrderPrice"
with pytest.raises(OperationalException, match=r"If you implement `adjust_order_price`.*"):
StrategyResolver.load_strategy(default_conf)
def test_call_deprecated_function(default_conf):
default_location = Path(__file__).parent / "strats/broken_strats/"