mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
tests: fix test-data setup for usdt trades
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user