Fix random test failure in pairlocks
This commit is contained in:
parent
58a92dc3da
commit
28d6c3419b
@ -10,6 +10,7 @@ from freqtrade.persistence.models import PairLock
|
|||||||
@pytest.mark.parametrize('use_db', (False, True))
|
@pytest.mark.parametrize('use_db', (False, True))
|
||||||
@pytest.mark.usefixtures("init_persistence")
|
@pytest.mark.usefixtures("init_persistence")
|
||||||
def test_PairLocks(use_db):
|
def test_PairLocks(use_db):
|
||||||
|
PairLocks.timeframe = '5m'
|
||||||
# No lock should be present
|
# No lock should be present
|
||||||
if use_db:
|
if use_db:
|
||||||
assert len(PairLock.query.all()) == 0
|
assert len(PairLock.query.all()) == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user