Merge branch 'develop' into feat/short
This commit is contained in:
@@ -536,6 +536,7 @@ def test_api_show_config(botclient):
|
||||
assert response['state'] == 'running'
|
||||
assert response['bot_name'] == 'freqtrade'
|
||||
assert response['trading_mode'] == 'spot'
|
||||
assert response['strategy_version'] is None
|
||||
assert not response['trailing_stop']
|
||||
assert 'bid_strategy' in response
|
||||
assert 'ask_strategy' in response
|
||||
|
@@ -1605,12 +1605,20 @@ def test_help_handle(default_conf, update, mocker) -> None:
|
||||
|
||||
def test_version_handle(default_conf, update, mocker) -> None:
|
||||
|
||||
telegram, _, msg_mock = get_telegram_testobject(mocker, default_conf)
|
||||
telegram, freqtradebot, msg_mock = get_telegram_testobject(mocker, default_conf)
|
||||
|
||||
telegram._version(update=update, context=MagicMock())
|
||||
assert msg_mock.call_count == 1
|
||||
assert '*Version:* `{}`'.format(__version__) in msg_mock.call_args_list[0][0][0]
|
||||
|
||||
msg_mock.reset_mock()
|
||||
freqtradebot.strategy.version = lambda: '1.1.1'
|
||||
|
||||
telegram._version(update=update, context=MagicMock())
|
||||
assert msg_mock.call_count == 1
|
||||
assert '*Version:* `{}`'.format(__version__) in msg_mock.call_args_list[0][0][0]
|
||||
assert '*Strategy version: * `1.1.1`' in msg_mock.call_args_list[0][0][0]
|
||||
|
||||
|
||||
def test_show_config_handle(default_conf, update, mocker) -> None:
|
||||
|
||||
|
Reference in New Issue
Block a user