From cdd9968831deebf53a23953e86bacd5807745dea Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 31 Oct 2025 06:55:52 +0100 Subject: [PATCH] test: use realistic arguments for tests --- tests/rpc/test_rpc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rpc/test_rpc.py b/tests/rpc/test_rpc.py index 03cdaa0b6..5dae36f10 100644 --- a/tests/rpc/test_rpc.py +++ b/tests/rpc/test_rpc.py @@ -848,11 +848,11 @@ def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None: freqtradebot.state = State.STOPPED with pytest.raises(RPCException, match=r".*trader is not running*"): - rpc._rpc_force_exit(None) + rpc._rpc_force_exit("22222") freqtradebot.state = State.RUNNING with pytest.raises(RPCException, match=r".*invalid argument*"): - rpc._rpc_force_exit(None) + rpc._rpc_force_exit("22222") msg = rpc._rpc_force_exit("all") assert msg == {"result": "Created exit orders for all open trades."} @@ -867,7 +867,7 @@ def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None: freqtradebot.state = State.STOPPED with pytest.raises(RPCException, match=r".*trader is not running*"): - rpc._rpc_force_exit(None) + rpc._rpc_force_exit("22222") with pytest.raises(RPCException, match=r".*trader is not running*"): rpc._rpc_force_exit("all")