From 4a225cab23f4c78131e542d9fc8c5876cb0d23eb Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 6 Nov 2025 20:43:57 +0100 Subject: [PATCH] test: update test for new "conflicting" behavior --- tests/strategy/test_interface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/strategy/test_interface.py b/tests/strategy/test_interface.py index e536e335a..1cad0e2b4 100644 --- a/tests/strategy/test_interface.py +++ b/tests/strategy/test_interface.py @@ -950,8 +950,9 @@ def test_auto_hyperopt_interface(default_conf): strategy.__class__.sell_rsi = IntParameter([0, 10], default=5, space="buy") - with pytest.raises(OperationalException, match=r"Conflicting parameter space.*"): - detect_all_parameters(strategy.__class__) + spaces = detect_all_parameters(strategy.__class__) + assert "buy" in spaces + assert spaces["buy"]["sell_rsi"] == strategy.sell_rsi del strategy.__class__.sell_rsi strategy.__class__.exit22_rsi = IntParameter([0, 10], default=5)