Fix random test failure

This commit is contained in:
Matthias 2021-08-08 10:57:20 +02:00
parent 7eaadb2630
commit be240566ba
1 changed files with 1 additions and 0 deletions

View File

@ -552,6 +552,7 @@ def test__analyze_ticker_internal_skip_analyze(ohlcv_history, mocker, caplog) ->
def test_is_pair_locked(default_conf):
default_conf.update({'strategy': 'DefaultStrategy'})
PairLocks.timeframe = default_conf['timeframe']
PairLocks.use_db = True
strategy = StrategyResolver.load_strategy(default_conf)
# No lock should be present
assert len(PairLocks.get_pair_locks(None)) == 0