From 28d6c3419b90c2dad1105f6631a42903cba41edc Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 27 Oct 2020 20:01:23 +0100 Subject: [PATCH] Fix random test failure in pairlocks --- tests/pairlist/test_pairlocks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/pairlist/test_pairlocks.py b/tests/pairlist/test_pairlocks.py index 3ed7d643e..0b6b89717 100644 --- a/tests/pairlist/test_pairlocks.py +++ b/tests/pairlist/test_pairlocks.py @@ -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