From 24a786bedd7e83a9e68e99041f6dd4d89fd018fc Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 23 Jul 2022 15:23:24 +0200 Subject: [PATCH] Update rpc test to contain sell order --- tests/rpc/test_rpc_telegram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rpc/test_rpc_telegram.py b/tests/rpc/test_rpc_telegram.py index 91ee92fd7..f69b7e878 100644 --- a/tests/rpc/test_rpc_telegram.py +++ b/tests/rpc/test_rpc_telegram.py @@ -686,6 +686,7 @@ def test_profit_handle(default_conf_usdt, update, ticker_usdt, ticker_sell_up, f # Simulate fulfilled LIMIT_SELL order for trade oobj = Order.parse_from_ccxt_object( limit_sell_order_usdt, limit_sell_order_usdt['symbol'], 'sell') + trade.orders.append(oobj) trade.update_trade(oobj) trade.close_date = datetime.now(timezone.utc) @@ -707,7 +708,7 @@ def test_profit_handle(default_conf_usdt, update, ticker_usdt, ticker_sell_up, f assert '*Best Performing:* `ETH/USDT: 9.45%`' in msg_mock.call_args_list[-1][0][0] assert '*Max Drawdown:*' in msg_mock.call_args_list[-1][0][0] assert '*Profit factor:*' in msg_mock.call_args_list[-1][0][0] - assert '*Trading volume:* `60 USDT`' in msg_mock.call_args_list[-1][0][0] + assert '*Trading volume:* `126 USDT`' in msg_mock.call_args_list[-1][0][0] @pytest.mark.parametrize('is_short', [True, False])