fiw wip test_api_status

This commit is contained in:
axel 2023-06-21 02:15:06 -04:00
parent 3f506bb474
commit 07c629922a

View File

@ -1000,11 +1000,11 @@ def test_api_performance(botclient, fee):
@pytest.mark.parametrize( @pytest.mark.parametrize(
'is_short,current_rate,open_order_id,open_trade_value', 'is_short,current_rate,open_trade_value',
[(True, 1.098e-05, 'dry_run_buy_short_12345', 15.0911775), [(True, 1.098e-05, 15.0911775),
(False, 1.099e-05, 'dry_run_buy_long_12345', 15.1668225)]) (False, 1.099e-05, 15.1668225)])
def test_api_status(botclient, mocker, ticker, fee, markets, is_short, 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 ftbot, client = botclient
patch_get_signal(ftbot) patch_get_signal(ftbot)
mocker.patch.multiple( mocker.patch.multiple(
@ -1078,7 +1078,6 @@ def test_api_status(botclient, mocker, ticker, fee, markets, is_short,
"is_short": is_short, "is_short": is_short,
'max_rate': ANY, 'max_rate': ANY,
'min_rate': ANY, 'min_rate': ANY,
'open_order_id': open_order_id,
'open_rate_requested': ANY, 'open_rate_requested': ANY,
'open_trade_value': open_trade_value, 'open_trade_value': open_trade_value,
'exit_reason': None, 'exit_reason': None,
@ -1225,7 +1224,6 @@ def test_api_force_entry(botclient, mocker, fee, endpoint):
exchange='binance', exchange='binance',
stake_amount=1, stake_amount=1,
open_rate=0.245441, open_rate=0.245441,
open_order_id="123456",
open_date=datetime.now(timezone.utc), open_date=datetime.now(timezone.utc),
is_open=False, is_open=False,
is_short=False, is_short=False,
@ -1286,7 +1284,6 @@ def test_api_force_entry(botclient, mocker, fee, endpoint):
'is_short': False, 'is_short': False,
'max_rate': None, 'max_rate': None,
'min_rate': None, 'min_rate': None,
'open_order_id': '123456',
'open_rate_requested': None, 'open_rate_requested': None,
'open_trade_value': 0.24605460, 'open_trade_value': 0.24605460,
'exit_reason': None, 'exit_reason': None,