tests: Update empty error match

This commit is contained in:
Matthias
2025-06-09 18:04:21 +02:00
parent 7957231ce4
commit 1ba411cccf

View File

@@ -154,7 +154,7 @@ def test_strategy_can_short(caplog, default_conf):
strat = StrategyResolver.load_strategy(default_conf)
assert isinstance(strat, IStrategy)
default_conf["strategy"] = "StrategyTestV3Futures"
with pytest.raises(ImportError, match=""):
with pytest.raises(ImportError, match="Short strategies cannot run in spot markets"):
StrategyResolver.load_strategy(default_conf)
default_conf["trading_mode"] = "futures"