mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
test: update stopentry related tests for rpc api and telegram
This commit is contained in:
@@ -535,21 +535,22 @@ def test_api_reloadconf(botclient):
|
||||
|
||||
def test_api_stopentry(botclient):
|
||||
ftbot, client = botclient
|
||||
assert ftbot.config["max_open_trades"] != 0
|
||||
|
||||
rc = client_post(client, f"{BASE_URI}/stopbuy")
|
||||
assert_response(rc)
|
||||
assert rc.json() == {"status": "pausing trader ..."}
|
||||
|
||||
rc = client_post(client, f"{BASE_URI}/stopbuy")
|
||||
assert_response(rc)
|
||||
assert rc.json() == {
|
||||
"status": "No more entries will occur from now. Run /reload_config to reset."
|
||||
"status": "No more entries will occur from now. Run /start to enable entries."
|
||||
}
|
||||
assert ftbot.config["max_open_trades"] == 0
|
||||
|
||||
rc = client_post(client, f"{BASE_URI}/stopentry")
|
||||
assert_response(rc)
|
||||
assert rc.json() == {
|
||||
"status": "No more entries will occur from now. Run /reload_config to reset."
|
||||
"status": "No more entries will occur from now. Run /start to enable entries."
|
||||
}
|
||||
assert ftbot.config["max_open_trades"] == 0
|
||||
|
||||
|
||||
def test_api_balance(botclient, mocker, rpc_balance, tickers):
|
||||
|
||||
Reference in New Issue
Block a user