Adjust tests for new messageType handling
This commit is contained in:
@@ -3256,6 +3256,7 @@ def test_execute_trade_exit_up(default_conf_usdt, ticker_usdt, fee, ticker_usdt_
|
||||
'pair': 'ETH/USDT',
|
||||
'gain': 'profit',
|
||||
'limit': 2.0 if is_short else 2.2,
|
||||
'order_rate': 2.0 if is_short else 2.2,
|
||||
'amount': pytest.approx(amt),
|
||||
'order_type': 'limit',
|
||||
'buy_tag': None,
|
||||
@@ -3321,6 +3322,7 @@ def test_execute_trade_exit_down(default_conf_usdt, ticker_usdt, fee, ticker_usd
|
||||
'leverage': 1.0,
|
||||
'gain': 'loss',
|
||||
'limit': 2.2 if is_short else 2.01,
|
||||
'order_rate': 2.2 if is_short else 2.01,
|
||||
'amount': pytest.approx(29.70297029) if is_short else 30.0,
|
||||
'order_type': 'limit',
|
||||
'buy_tag': None,
|
||||
@@ -3405,6 +3407,7 @@ def test_execute_trade_exit_custom_exit_price(
|
||||
'leverage': 1.0,
|
||||
'gain': profit_or_loss,
|
||||
'limit': limit,
|
||||
'order_rate': limit,
|
||||
'amount': pytest.approx(amount),
|
||||
'order_type': 'limit',
|
||||
'buy_tag': None,
|
||||
@@ -3476,6 +3479,7 @@ def test_execute_trade_exit_down_stoploss_on_exchange_dry_run(
|
||||
'leverage': 1.0,
|
||||
'gain': 'loss',
|
||||
'limit': 2.02 if is_short else 1.98,
|
||||
'order_rate': 2.02 if is_short else 1.98,
|
||||
'amount': pytest.approx(29.70297029 if is_short else 30.0),
|
||||
'order_type': 'limit',
|
||||
'buy_tag': None,
|
||||
@@ -3741,6 +3745,7 @@ def test_execute_trade_exit_market_order(
|
||||
'leverage': 1.0,
|
||||
'gain': profit_or_loss,
|
||||
'limit': limit,
|
||||
'order_rate': limit,
|
||||
'amount': pytest.approx(amount),
|
||||
'order_type': 'market',
|
||||
'buy_tag': None,
|
||||
|
||||
Reference in New Issue
Block a user