From c61520fad84979cd1f8bb575553c15f60f9e9381 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 23 Feb 2021 17:20:19 +0100 Subject: splitpart filer: add a merge_end option --- ishtar_common/tests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/tests.py') diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index b5de13fe1..20f87b3bc 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -2882,6 +2882,8 @@ class JinjaFilterTest(TestCase): self.assertEqual(utils_secretary.splitpart("1,2,3", 10), "") self.assertEqual(utils_secretary.splitpart("", 10), "") self.assertEqual(utils_secretary.splitpart("1;2;3", 2, ";"), "3") + self.assertEqual(utils_secretary.splitpart( + "1;2;3;4", 1, ";", True), "2;3;4") def test_human_date(self): self.assertEqual(utils_secretary.human_date_filter("NODATE"), "") -- cgit v1.2.3