diff tests/test.py @ 708:e692216f8756

Allow also "," characters to act as a separator within a filter-chain. The first filter is introduced by a "|", optional other ones may be introduced by a "|" or a ",".
author Franz Glasner <f.glasner@feldmann-mg.com>
date Tue, 15 Aug 2023 11:14:51 +0200
parents 0485a033c95d
children ff0de14493f1
line wrap: on
line diff
--- a/tests/test.py	Tue Aug 15 10:41:22 2023 +0200
+++ b/tests/test.py	Tue Aug 15 11:14:51 2023 +0200
@@ -2229,6 +2229,10 @@
         self.assertEqual((u"the-varname", [u"Empty", u"None"]),
                          self.split_filters(u"the-varname|Empty|None", 1))
 
+    def test_split_filters_many_alt(self):
+        self.assertEqual((u"the-varname", [u"Empty", u"None"]),
+                         self.split_filters(u"the-varname|Empty,None", 1))
+
     def test_None_filter_single(self):
         cfg = configmix.load()
         x = getattr(cfg, self.interpolate_meth)(u"{{non-existing|None}}")