changeset 724:ef7bee8b54e1

Another test with chaining nested filter interpolation
author Franz Glasner <f.glasner@feldmann-mg.com>
date Wed, 16 Aug 2023 17:17:27 +0200
parents c17a4e30ebbf
children 11e24e1bbf20
files tests/test.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test.py	Wed Aug 16 17:04:14 2023 +0200
+++ b/tests/test.py	Wed Aug 16 17:17:27 2023 +0200
@@ -2461,6 +2461,17 @@
             os.path.normpath(u("a/b/d")),
             np)
 
+    def test_nested_filter_normpath_posixpath(self):
+        cfg1 = {
+            u("path1"): u("a\\b\\c"),
+            u("path2"): u("{{|{{path1}}/../d|normpath,posixpath|}}")
+        }
+        cfg = cfg = configmix.config.Configuration(cfg1)
+        np = cfg.getvarl_s(u("path2"))
+        self.assertEqual(
+            u("a/b/d"),
+            np)
+
 
 class T09Parser(_TParserMixin, unittest.TestCase):