Fix #1840 - Support balances other than USDT

This commit is contained in:
Matthias
2019-05-11 15:27:09 +02:00
parent 867f9ae362
commit 46b1ecc77d
2 changed files with 9 additions and 2 deletions

View File

@@ -522,6 +522,11 @@ def test_telegram_balance_handle(default_conf, update, mocker) -> None:
'total': 1.0,
'free': 1.0,
'used': 0.0
},
'EUR': {
'total': 10.0,
'free': 10.0,
'used': 0.0
}
}
@@ -565,6 +570,7 @@ def test_telegram_balance_handle(default_conf, update, mocker) -> None:
assert '*BTC:*' in result
assert '*ETH:*' not in result
assert '*USDT:*' in result
assert '*EUR:*' in result
assert 'Balance:' in result
assert 'Est. BTC:' in result
assert 'BTC: 12.00000000' in result