Try to revert sequence in test

This commit is contained in:
Matthias 2022-03-08 07:10:59 +01:00
parent b4ec2b3a5a
commit 1ce55e88b4

View File

@ -633,9 +633,6 @@ def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
cancel_order=cancel_mock, cancel_order=cancel_mock,
cancel_stoploss_order=stoploss_mock, cancel_stoploss_order=stoploss_mock,
) )
rc = client_delete(client, f"{BASE_URI}/trades/1")
# Error - trade won't exist yet.
assert_response(rc, 502)
create_mock_trades(fee, is_short=is_short) create_mock_trades(fee, is_short=is_short)
@ -664,6 +661,10 @@ def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
assert len(trades) - 2 == len(Trade.query.all()) assert len(trades) - 2 == len(Trade.query.all())
assert stoploss_mock.call_count == 1 assert stoploss_mock.call_count == 1
rc = client_delete(client, f"{BASE_URI}/trades/502")
# Error - trade won't exist.
assert_response(rc, 502)
def test_api_logs(botclient): def test_api_logs(botclient):
ftbot, client = botclient ftbot, client = botclient