use wallets instead of doing a direct call to /balance

This commit is contained in:
Matthias
2019-11-24 19:41:51 +01:00
parent 1bf8d8cff3
commit 50350a09cd
3 changed files with 12 additions and 9 deletions

View File

@@ -243,9 +243,9 @@ def test_api_balance(botclient, mocker, rpc_balance):
'last': 0.1,
}
mocker.patch('freqtrade.exchange.Exchange.get_balances', return_value=rpc_balance)
mocker.patch('freqtrade.exchange.Exchange.get_ticker', side_effect=mock_ticker)
mocker.patch('freqtrade.exchange.Exchange.get_valid_pair_combination',
side_effect=lambda a, b: f"{a}/{b}")
ftbot.wallets.update()
rc = client_get(client, f"{BASE_URI}/balance")
assert_response(rc)