Updated bundle_root to work wherever ithe root is in relation to the library

This commit is contained in:
2026-11-21 09:57:55 +01:00
parent a419167939
commit 94f220e00d
4 changed files with 224 additions and 67 deletions
+2 -7
View File
@@ -193,13 +193,8 @@ def test_unicode_values(manager):
assert manager.t("welcome", name="Zoë 日本") == "Willkommen, Zoë 日本!"
# According to the README/docstring, the unformatted text should be returned on
# *any* formatting error ("a malformed or incomplete format string must not
# disrupt UI"). ``_format`` only catches KeyError, IndexError and ValueError, so
# these two cases currently raise AttributeError / TypeError. Remove the xfail
# marker once ``_format`` is fixed.
# @pytest.mark.xfail(strict=True, raises=(AttributeError, TypeError),
# reason="_format() does not catch AttributeError/TypeError")
# ``_format`` returns the unformatted text on *any* formatting error, including
# AttributeError (``{name.attr}``) and TypeError (``{name[x]}``).
@pytest.mark.parametrize(
("key", "expected"),
[("attr", "Wert: {name.nope}"), ("idx", "Wert: {name[x]}")],