chore: update function naming
This commit is contained in:
@@ -1222,11 +1222,11 @@ async def test_stop_handle_already_stopped(default_conf, update, mocker) -> None
|
||||
assert "already stopped" in msg_mock.call_args_list[0][0][0]
|
||||
|
||||
|
||||
async def test_stopbuy_handle(default_conf, update, mocker) -> None:
|
||||
async def test_pause_handle(default_conf, update, mocker) -> None:
|
||||
telegram, freqtradebot, msg_mock = get_telegram_testobject(mocker, default_conf)
|
||||
|
||||
assert freqtradebot.state == State.RUNNING
|
||||
await telegram._stopentry(update=update, context=MagicMock())
|
||||
await telegram._pause(update=update, context=MagicMock())
|
||||
assert freqtradebot.state == State.PAUSED
|
||||
assert msg_mock.call_count == 1
|
||||
assert "pausing trader ..." in msg_mock.call_args_list[0][0][0]
|
||||
|
||||
Reference in New Issue
Block a user