flush after creating mock trades

This commit is contained in:
Matthias 2021-04-06 19:35:17 +02:00
parent 56ef3af424
commit c40b811f19

View File

@ -220,6 +220,9 @@ def create_mock_trades(fee, use_db: bool = True):
trade = mock_trade_6(fee)
add_trade(trade)
if use_db:
Trade.query.session.flush()
@pytest.fixture(autouse=True)
def patch_coingekko(mocker) -> None: