mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
flush after creating mock trades
This commit is contained in:
parent
56ef3af424
commit
c40b811f19
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user