Fix failing test due to not updated expected values.
This commit is contained in:
parent
2ee87f8c66
commit
8961370269
@ -2672,8 +2672,10 @@ def test_execute_trade_exit_custom_exit_price(default_conf_usdt, ticker_usdt, fe
|
|||||||
get_fee=fee,
|
get_fee=fee,
|
||||||
_is_dry_limit_order_filled=MagicMock(return_value=False),
|
_is_dry_limit_order_filled=MagicMock(return_value=False),
|
||||||
)
|
)
|
||||||
patch_whitelist(mocker, default_conf_usdt)
|
config = deepcopy(default_conf_usdt)
|
||||||
freqtrade = FreqtradeBot(default_conf_usdt)
|
config['custom_price_max_distance_ratio'] = 0.1
|
||||||
|
patch_whitelist(mocker, config)
|
||||||
|
freqtrade = FreqtradeBot(config)
|
||||||
patch_get_signal(freqtrade)
|
patch_get_signal(freqtrade)
|
||||||
freqtrade.strategy.confirm_trade_exit = MagicMock(return_value=False)
|
freqtrade.strategy.confirm_trade_exit = MagicMock(return_value=False)
|
||||||
|
|
||||||
@ -2716,8 +2718,8 @@ def test_execute_trade_exit_custom_exit_price(default_conf_usdt, ticker_usdt, fe
|
|||||||
'order_type': 'limit',
|
'order_type': 'limit',
|
||||||
'open_rate': 2.0,
|
'open_rate': 2.0,
|
||||||
'current_rate': 2.3,
|
'current_rate': 2.3,
|
||||||
'profit_amount': 6.041e-05,
|
'profit_amount': 1.196875,
|
||||||
'profit_ratio': 0.07262344,
|
'profit_ratio': 0.11938903,
|
||||||
'stake_currency': 'USDT',
|
'stake_currency': 'USDT',
|
||||||
'fiat_currency': 'USD',
|
'fiat_currency': 'USD',
|
||||||
'sell_reason': SellType.SELL_SIGNAL.value,
|
'sell_reason': SellType.SELL_SIGNAL.value,
|
||||||
|
Loading…
Reference in New Issue
Block a user