mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
test: update test_rpc_stopentry, small wording change on _rpc_stopentry status
This commit is contained in:
@@ -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]:
|
||||
"""
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user