compact low balance currencies

This commit is contained in:
kevinjulian
2021-07-04 02:44:48 +07:00
parent 9d6860337f
commit b722e12350
3 changed files with 21 additions and 7 deletions

View File

@@ -515,16 +515,21 @@ def test_telegram_balance_handle(default_conf, update, mocker, rpc_balance, tick
patch_get_signal(freqtradebot, (True, False))
telegram._balance(update=update, context=MagicMock())
print('msg_mock.call_args_list')
print(msg_mock.call_args_list)
result = msg_mock.call_args_list[0][0][0]
assert msg_mock.call_count == 1
assert '*BTC:*' in result
assert '*ETH:*' not in result
assert '*USDT:*' in result
assert '*EUR:*' in result
assert '*USDT:*' not in result
assert '*EUR:*' not in result
assert '*LTC:*' in result
assert '*XRP:*' not in result
assert 'Balance:' in result
assert 'Est. BTC:' in result
assert 'BTC: 12.00000000' in result
assert '*XRP:* not showing <0.0001 BTC amount' in result
assert "*3 Other Currencies:*" in result
assert 'BTC: 0.00000309' in result
def test_balance_handle_empty_response(default_conf, update, mocker) -> None: