Make sure backtesting is cleaned up in tests

This commit is contained in:
Matthias
2022-02-24 06:25:21 +01:00
parent 53452c8d64
commit 42df65d4ec
3 changed files with 11 additions and 4 deletions

View File

@@ -1108,6 +1108,7 @@ def test_api_forcesell(botclient, mocker, ticker, fee, markets):
data='{"tradeid": "1"}')
assert_response(rc, 502)
assert rc.json() == {"error": "Error querying /api/v1/forcesell: invalid argument"}
Trade.query.session.rollback()
ftbot.enter_positions()