diff --git a/tests/rpc/test_rpc.py b/tests/rpc/test_rpc.py index cf3d2cf18..8b9a0835a 100644 --- a/tests/rpc/test_rpc.py +++ b/tests/rpc/test_rpc.py @@ -816,7 +816,9 @@ def test_rpc_pause(mocker, default_conf) -> None: freqtradebot.state = State.PAUSED result = rpc._rpc_pause() - assert {"status": "paused, no entries will occur. Run /start to enable entries."} == result + assert { + "status": "paused, no more entries will occur from now. Run /start to enable entries." + } == result def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None: diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 7a2d9f4f9..62a054313 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -538,15 +538,21 @@ def test_api_pause(botclient): rc = client_post(client, f"{BASE_URI}/pause") assert_response(rc) - assert rc.json() == {"status": "paused, no entries will occur. Run /start to enable entries."} + assert rc.json() == { + "status": "paused, no more entries will occur from now. Run /start to enable entries." + } rc = client_post(client, f"{BASE_URI}/pause") assert_response(rc) - assert rc.json() == {"status": "paused, no entries will occur. Run /start to enable entries."} + assert rc.json() == { + "status": "paused, no more entries will occur from now. Run /start to enable entries." + } rc = client_post(client, f"{BASE_URI}/stopentry") assert_response(rc) - assert rc.json() == {"status": "paused, no entries will occur. Run /start to enable entries."} + assert rc.json() == { + "status": "paused, no more entries will occur from now. Run /start to enable entries." + } def test_api_balance(botclient, mocker, rpc_balance, tickers): diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index 61569d8f4..3409cc0e5 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -1230,7 +1230,7 @@ async def test_pause_handle(default_conf, update, mocker) -> None: assert freqtradebot.state == State.PAUSED assert msg_mock.call_count == 1 assert ( - "paused, no entries will occur. Run /start to enable entries." + "paused, no more entries will occur from now. Run /start to enable entries." in msg_mock.call_args_list[0][0][0] )