fix: improved message when nonexisting trade is deleted

part of #11967
This commit is contained in:
Matthias
2025-07-07 19:13:55 +02:00
parent 14429d449c
commit 60029c2a8b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ def test_rpc_delete_trade(mocker, default_conf, fee, markets, caplog, is_short):
freqtradebot.strategy.order_types["stoploss_on_exchange"] = True
create_mock_trades(fee, is_short)
rpc = RPC(freqtradebot)
with pytest.raises(RPCException, match="invalid argument"):
with pytest.raises(RPCException, match="Trade with id '200' not found."):
rpc._rpc_delete("200")
trades = Trade.session.scalars(select(Trade)).all()