Fix random test failure in pairlocks

This commit is contained in:
Matthias 2020-10-27 20:01:23 +01:00
parent 58a92dc3da
commit 28d6c3419b

View File

@ -10,6 +10,7 @@ from freqtrade.persistence.models import PairLock
@pytest.mark.parametrize('use_db', (False, True))
@pytest.mark.usefixtures("init_persistence")
def test_PairLocks(use_db):
PairLocks.timeframe = '5m'
# No lock should be present
if use_db:
assert len(PairLock.query.all()) == 0