Buckets:

download
raw
621 Bytes
import pytest
from freqtrade.util import render_template, render_template_with_fallback
def test_render_template_fallback():
from jinja2.exceptions import TemplateNotFound
with pytest.raises(TemplateNotFound):
val = render_template(
templatefile="subtemplates/indicators_does-not-exist.j2",
arguments={},
)
val = render_template_with_fallback(
templatefile="strategy_subtemplates/indicators_does-not-exist.j2",
templatefallbackfile="strategy_subtemplates/indicators_minimal.j2",
)
assert isinstance(val, str)
assert "if self.dp" in val

Xet Storage Details

Size:
621 Bytes
·
Xet hash:
5c94eeb019d28c7c123db20363dd6382c20b8dfa4e80b551f6cfc5839657bd9a

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