fix: do not load use_data with rougail cli

This commit is contained in:
egarette@silique.fr 2025-05-02 08:22:40 +02:00
parent dfbcd84a00
commit 7cc4efe1af
2 changed files with 19 additions and 4 deletions

View file

@ -30,20 +30,35 @@ load_unexist_redefine:
default: default:
jinja: >- jinja: >-
{% if step.output is not propertyerror and step.output == 'formatter' %} {% if step.output is not propertyerror and step.output == 'formatter' %}
true true
{% else %} {% else %}
false false
{% endif %} {% endif %}
hidden: hidden:
jinja: >- jinja: >-
{% if step.output is not propertyerror and step.output == 'formatter' %} {% if step.output is not propertyerror and step.output == 'formatter' %}
load_unexist_redefine is always true with 'formatter' output load_unexist_redefine is always true with 'formatter' output
{% endif %} {% endif %}
cli:
load_config:
exists: true
redefine: true
type: boolean
default:
jinja: >-
{% if step.output is not propertyerror and step.output == 'formatter' %}
false
{% else %}
true
{% endif %}
""" """
return { return {
"name": "formatter", "name": "formatter",
"process": "output", "process": "output",
"options": options, "options": options,
"allow_user_data": False,
"level": 90, "level": 90,
} }

View file

@ -15,7 +15,7 @@ excludes = [
] ]
test_ok = get_structures_list(excludes) test_ok = get_structures_list(excludes)
# test_ok = [Path('../rougail-tests/structures/16_3family_empty_at_ends')] # test_ok = [Path('../rougail-tests/structures/60_6family_dynamic_sub_dynamic_1_0_2')]
def idfn(fixture_value): def idfn(fixture_value):