test: update test_rpc_stopentry, small wording change on _rpc_stopentry status

This commit is contained in:
Axel-CH
2025-03-23 00:14:22 -04:00
parent 4f4f927b97
commit 3ec72f88e2
2 changed files with 5 additions and 5 deletions

View File

@@ -861,7 +861,7 @@ class RPC:
self._freqtrade.state = State.PAUSED
return {"status": "starting bot with trader in paused state..."}
return {"status": "No more entries will occur from now. Run /start to enable entries"}
return {"status": "No more entries will occur from now. Run /start to enable entries."}
def _rpc_reload_trade_from_exchange(self, trade_id: int) -> dict[str, str]:
"""

View File

@@ -813,12 +813,12 @@ def test_rpc_stopentry(mocker, default_conf) -> None:
freqtradebot = get_patched_freqtradebot(mocker, default_conf)
patch_get_signal(freqtradebot)
rpc = RPC(freqtradebot)
freqtradebot.state = State.RUNNING
freqtradebot.state = State.PAUSED
assert freqtradebot.config["max_open_trades"] != 0
result = rpc._rpc_stopentry()
assert {"status": "No more entries will occur from now. Run /reload_config to reset."} == result
assert freqtradebot.config["max_open_trades"] == 0
assert {
"status": "No more entries will occur from now. Run /start to enable entries."
} == result
def test_rpc_force_exit(default_conf, ticker, fee, mocker) -> None: