mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 10:33:08 +00:00
tests: Update empty error match
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user