From 07c629922a89f341fdfcc16bb4f45c27ffb0565d Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 21 Jun 2023 02:15:06 -0400 Subject: [PATCH] fiw wip test_api_status --- tests/rpc/test_rpc_apiserver.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 62cba4a98..645d4b5fb 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -1000,11 +1000,11 @@ def test_api_performance(botclient, fee): @pytest.mark.parametrize( - 'is_short,current_rate,open_order_id,open_trade_value', - [(True, 1.098e-05, 'dry_run_buy_short_12345', 15.0911775), - (False, 1.099e-05, 'dry_run_buy_long_12345', 15.1668225)]) + 'is_short,current_rate,open_trade_value', + [(True, 1.098e-05, 15.0911775), + (False, 1.099e-05, 15.1668225)]) def test_api_status(botclient, mocker, ticker, fee, markets, is_short, - current_rate, open_order_id, open_trade_value): + current_rate, open_trade_value): ftbot, client = botclient patch_get_signal(ftbot) mocker.patch.multiple( @@ -1078,7 +1078,6 @@ def test_api_status(botclient, mocker, ticker, fee, markets, is_short, "is_short": is_short, 'max_rate': ANY, 'min_rate': ANY, - 'open_order_id': open_order_id, 'open_rate_requested': ANY, 'open_trade_value': open_trade_value, 'exit_reason': None, @@ -1225,7 +1224,6 @@ def test_api_force_entry(botclient, mocker, fee, endpoint): exchange='binance', stake_amount=1, open_rate=0.245441, - open_order_id="123456", open_date=datetime.now(timezone.utc), is_open=False, is_short=False, @@ -1286,7 +1284,6 @@ def test_api_force_entry(botclient, mocker, fee, endpoint): 'is_short': False, 'max_rate': None, 'min_rate': None, - 'open_order_id': '123456', 'open_rate_requested': None, 'open_trade_value': 0.24605460, 'exit_reason': None,