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)
|
trade = mock_trade_6(fee)
|
||||||
add_trade(trade)
|
add_trade(trade)
|
||||||
|
|
||||||
|
if use_db:
|
||||||
|
Trade.query.session.flush()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def patch_coingekko(mocker) -> None:
|
def patch_coingekko(mocker) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user