tests: fix test-data setup for usdt trades

This commit is contained in:
Matthias
2024-10-01 20:31:02 +02:00
parent d8c6c766b9
commit d2bc47cfe8
2 changed files with 3 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ def mock_trade_usdt_4(fee, is_short: bool):
trade = Trade(
pair="NEO/USDT",
stake_amount=20.0,
amount=10.0,
amount=0.0,
amount_requested=10.01,
fee_open=fee.return_value,
fee_close=fee.return_value,

View File

@@ -362,7 +362,8 @@ def test_sync_wallet_dry(mocker, default_conf_usdt, fee):
assert len(freqtrade.wallets._wallets) == 5
assert len(freqtrade.wallets._positions) == 0
bal = freqtrade.wallets.get_all_balances()
assert bal["NEO"].total == 10
# NEO trade is not filled yet.
assert bal["NEO"].total == 0
assert bal["XRP"].total == 10
assert bal["LTC"].total == 2
usdt_bal = bal["USDT"]