Improve variable wording

This commit is contained in:
Matthias
2023-02-28 20:31:02 +01:00
parent f822f1795a
commit dd10dec73d
6 changed files with 19 additions and 14 deletions

View File

@@ -76,8 +76,8 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'stoploss_entry_dist_ratio': -0.10376381,
'open_order': None,
'realized_profit': 0.0,
'combined_profit_abs': -4.09e-06,
'combined_profit_fiat': ANY,
'total_profit_abs': -4.09e-06,
'total_profit_fiat': ANY,
'exchange': 'binance',
'leverage': 1.0,
'interest_rate': 0.0,
@@ -121,7 +121,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'profit_ratio': 0.0,
'profit_pct': 0.0,
'profit_abs': 0.0,
'combined_profit_abs': 0.0,
'total_profit_abs': 0.0,
'stop_loss_abs': 0.0,
'stop_loss_pct': None,
'stop_loss_ratio': None,
@@ -183,7 +183,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'profit_ratio': ANY,
'profit_pct': ANY,
'profit_abs': ANY,
'combined_profit_abs': ANY,
'total_profit_abs': ANY,
'current_rate': ANY,
})
assert results[0] == response_norate

View File

@@ -1012,6 +1012,8 @@ def test_api_status(botclient, mocker, ticker, fee, markets, is_short,
'profit_pct': ANY,
'profit_abs': ANY,
'profit_fiat': ANY,
'total_profit_abs': ANY,
'total_profit_fiat': ANY,
'realized_profit': 0.0,
'current_rate': current_rate,
'open_date': ANY,

View File

@@ -205,7 +205,7 @@ def test_telegram_status(default_conf, update, mocker) -> None:
'profit_ratio': -0.0059,
'profit_abs': -0.225,
'realized_profit': 0.0,
'combined_profit_abs': -0.225,
'total_profit_abs': -0.225,
'initial_stop_loss_abs': 1.098e-05,
'stop_loss_abs': 1.099e-05,
'exit_order_status': None,