From c5ce8c6dd8fda8f5fcd2bb8b2f8c49b563c99833 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sun, 4 Jul 2021 23:32:55 -0600 Subject: [PATCH] fixed rpc_apiserver test fails, changed test_persistence_long to test_persistence_leverage --- tests/conftest.py | 2 ++ .../{test_persistence_long.py => test_persistence_leverage.py} | 0 2 files changed, 2 insertions(+) rename tests/{test_persistence_long.py => test_persistence_leverage.py} (100%) diff --git a/tests/conftest.py b/tests/conftest.py index 843769df0..f935b7fa2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -215,6 +215,8 @@ def create_mock_trades(fee, use_db: bool = True): add_trade(trade) trade = mock_trade_6(fee) add_trade(trade) + if use_db: + Trade.query.session.flush() def create_mock_trades_with_leverage(fee, use_db: bool = True): diff --git a/tests/test_persistence_long.py b/tests/test_persistence_leverage.py similarity index 100% rename from tests/test_persistence_long.py rename to tests/test_persistence_leverage.py