Buckets:

download
raw
633 Bytes
import pytest
from freqtrade.persistence import FtNoDBContext, PairLocks, Trade
@pytest.mark.parametrize("timeframe", ["", "5m", "1d"])
def test_FtNoDBContext(timeframe):
PairLocks.timeframe = ""
assert Trade.use_db
assert PairLocks.use_db
assert PairLocks.timeframe == ""
with FtNoDBContext(timeframe):
assert not Trade.use_db
assert not PairLocks.use_db
assert PairLocks.timeframe == timeframe
with FtNoDBContext():
assert not Trade.use_db
assert not PairLocks.use_db
assert PairLocks.timeframe == ""
assert Trade.use_db
assert PairLocks.use_db

Xet Storage Details

Size:
633 Bytes
·
Xet hash:
24698b49374431e7d9150e687f8e70dc5eb5ec3eff689f8f44a6eb87e79eb57c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.