From cfe1187cd997f67e43226e047956967019e291c9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 24 Aug 2023 17:38:56 +0200 Subject: [PATCH] Fix missed Test --- tests/rpc/test_rpc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/rpc/test_rpc.py b/tests/rpc/test_rpc.py index 3bc725f3a..d97222adc 100644 --- a/tests/rpc/test_rpc.py +++ b/tests/rpc/test_rpc.py @@ -363,9 +363,8 @@ def test_rpc_delete_trade(mocker, default_conf, fee, markets, caplog, is_short): res = rpc._rpc_delete('2') assert isinstance(res, dict) - assert cancel_mock.call_count == 1 assert stoploss_mock.call_count == 1 - assert res['cancel_order_count'] == 2 + assert res['cancel_order_count'] == 1 stoploss_mock = mocker.patch(f'{EXMS}.cancel_stoploss_order', side_effect=InvalidOrderException)