mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
reword stopbuy message
This commit is contained in:
parent
aa698a8412
commit
8d173efe2d
|
@ -422,7 +422,7 @@ def test_rpc_stopbuy(mocker, default_conf) -> None:
|
|||
|
||||
assert freqtradebot.config['max_open_trades'] != 0
|
||||
result = rpc._rpc_stopbuy()
|
||||
assert {'status': 'Setting max_open_trades to 0. Run /reload_conf to reset.'} == result
|
||||
assert {'status': 'No more buy will occur from now. Run /reload_conf to reset.'} == result
|
||||
assert freqtradebot.config['max_open_trades'] == 0
|
||||
|
||||
|
||||
|
|
|
@ -678,7 +678,7 @@ def test_stopbuy_handle(default_conf, update, mocker) -> None:
|
|||
telegram._stopbuy(bot=MagicMock(), update=update)
|
||||
assert freqtradebot.config['max_open_trades'] == 0
|
||||
assert msg_mock.call_count == 1
|
||||
assert 'Setting max_open_trades to 0. Run /reload_conf to reset.' \
|
||||
assert 'No more buy will occur from now. Run /reload_conf to reset.' \
|
||||
in msg_mock.call_args_list[0][0][0]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user