mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-06 06:10:24 +00:00
Update tests
This commit is contained in:
@@ -546,7 +546,9 @@ def test_rpc_balance_handle(default_conf, mocker, tickers):
|
||||
'free': 10.0,
|
||||
'balance': 12.0,
|
||||
'used': 2.0,
|
||||
'bot_owned': 0,
|
||||
'est_stake': 10.0, # In futures mode, "free" is used here.
|
||||
'est_stake_bot': 10,
|
||||
'stake': 'BTC',
|
||||
'is_position': False,
|
||||
'leverage': 1.0,
|
||||
@@ -558,7 +560,9 @@ def test_rpc_balance_handle(default_conf, mocker, tickers):
|
||||
'free': 1.0,
|
||||
'balance': 5.0,
|
||||
'currency': 'ETH',
|
||||
'bot_owned': 0,
|
||||
'est_stake': 0.30794,
|
||||
'est_stake_bot': 0,
|
||||
'used': 4.0,
|
||||
'stake': 'BTC',
|
||||
'is_position': False,
|
||||
@@ -571,7 +575,9 @@ def test_rpc_balance_handle(default_conf, mocker, tickers):
|
||||
'free': 5.0,
|
||||
'balance': 10.0,
|
||||
'currency': 'USDT',
|
||||
'bot_owned': 0,
|
||||
'est_stake': 0.0011562404610161968,
|
||||
'est_stake_bot': 0,
|
||||
'used': 5.0,
|
||||
'stake': 'BTC',
|
||||
'is_position': False,
|
||||
|
||||
@@ -842,7 +842,9 @@ def test_balance_handle_too_large_response(default_conf, update, mocker) -> None
|
||||
'free': 1.0,
|
||||
'used': 0.5,
|
||||
'balance': i,
|
||||
'bot_owned': 0.5,
|
||||
'est_stake': 1,
|
||||
'est_stake_bot': 1,
|
||||
'stake': 'BTC',
|
||||
'is_position': False,
|
||||
'leverage': 1.0,
|
||||
|
||||
Reference in New Issue
Block a user