Commit mock-trades to avoid errors in tests

This commit is contained in:
Matthias 2021-10-12 06:53:15 +02:00
parent de5657a91b
commit 7f1080368b

View File

@ -226,6 +226,7 @@ def create_mock_trades(fee, use_db: bool = True):
add_trade(trade)
if use_db:
Trade.commit()
Trade.query.session.flush()
@ -259,6 +260,7 @@ def create_mock_trades_usdt(fee, use_db: bool = True):
add_trade(trade)
if use_db:
Trade.commit()
Trade.query.session.flush()