1
0
Fork 0

Merging upstream version 0.53+dfsg.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-25 04:36:42 +01:00
parent b13d435d9c
commit be4bb35aeb
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
14 changed files with 764 additions and 526 deletions

View file

@ -45,11 +45,10 @@ def test_add_same_folder_in_same_prefix_does_nothing():
def test_add_module_legacy():
class Module:
components_path = "legacy_path"
prefix = "legacy"
catalog = jinjax.Catalog()
module = Module()
catalog.add_module(module)
catalog.add_module(module, prefix="legacy")
assert "legacy_path" in catalog.prefixes["legacy"].searchpath
@ -65,19 +64,6 @@ def test_add_module_legacy_with_default_prefix():
assert "legacy_path" in catalog.prefixes[""].searchpath
def test_add_module_legacy_with_custom_prefix():
class Module:
components_path = "legacy_path"
prefix = "legacy"
catalog = jinjax.Catalog()
module = Module()
catalog.add_module(module, prefix="custom")
assert "legacy" not in catalog.prefixes
assert "legacy_path" in catalog.prefixes["custom"].searchpath
def test_add_module_fails_with_other_modules():
class Module:
pass