fixed rpc_apiserver test fails, changed test_persistence_long to test_persistence_leverage

This commit is contained in:
Sam Germain 2021-07-04 23:32:55 -06:00
parent 0d5749c508
commit c5ce8c6dd8
2 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,8 @@ def create_mock_trades(fee, use_db: bool = True):
add_trade(trade) add_trade(trade)
trade = mock_trade_6(fee) trade = mock_trade_6(fee)
add_trade(trade) add_trade(trade)
if use_db:
Trade.query.session.flush()
def create_mock_trades_with_leverage(fee, use_db: bool = True): def create_mock_trades_with_leverage(fee, use_db: bool = True):