Try to revert sequence in test
This commit is contained in:
parent
b4ec2b3a5a
commit
1ce55e88b4
@ -633,9 +633,6 @@ def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
|
||||
cancel_order=cancel_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)
|
||||
|
||||
@ -664,6 +661,10 @@ def test_api_delete_trade(botclient, mocker, fee, markets, is_short):
|
||||
assert len(trades) - 2 == len(Trade.query.all())
|
||||
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):
|
||||
ftbot, client = botclient
|
||||
|
Loading…
Reference in New Issue
Block a user