mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
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.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
|
||||
|
|
Loading…
Reference in New Issue
Block a user