From a837571e2bbdca7afcfcf33be94d4d6ba14f49f5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 9 Mar 2022 19:01:38 +0100 Subject: [PATCH] Improve dry-run-wallets in futures case test --- tests/test_wallets.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_wallets.py b/tests/test_wallets.py index e7b804a0b..73a34bbae 100644 --- a/tests/test_wallets.py +++ b/tests/test_wallets.py @@ -356,3 +356,9 @@ def test_sync_wallet_futures_dry(mocker, default_conf, fee): positions['ETC/BTC'].side == 'long' positions['XRP/BTC'].side == 'long' positions['LTC/BTC'].side == 'short' + + assert freqtrade.wallets.get_starting_balance() == default_conf['dry_run_wallet'] + total = freqtrade.wallets.get_total('BTC') + free = freqtrade.wallets.get_free('BTC') + used = freqtrade.wallets.get_used('BTC') + assert free + used == total