fix: add_quotes
This commit is contained in:
parent
6be773de3c
commit
1662568c17
2 changed files with 5 additions and 3 deletions
|
|
@ -61,10 +61,11 @@ def tiramisu_display_name(
|
|||
path = path.replace(
|
||||
"{{ identifier }}", normalize_family(str(subconfig.identifiers[-1]))
|
||||
)
|
||||
if with_quote and not path_in_description:
|
||||
return f'"{path}"{comment}'
|
||||
else:
|
||||
path = ""
|
||||
path = comment
|
||||
comment = ""
|
||||
if with_quote:
|
||||
return f'"{path}"{comment}'
|
||||
return f"{path}{comment}"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ def test_personalize_annotate_twice():
|
|||
def test_option_params():
|
||||
rougailconfig = RougailConfig.copy()
|
||||
rougailconfig['dictionaries_dir'] = ['tests/default_option_params/structure']
|
||||
rougailconfig["define_default_params"] = True
|
||||
rougailconfig["default_params.unix_filename.test_existence"] = True
|
||||
eolobj = Rougail(rougailconfig=rougailconfig)
|
||||
with raises(ValueError):
|
||||
|
|
|
|||
Loading…
Reference in a new issue