summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2023-01-03 20:48:06 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-02-07 09:46:25 +0100
commit6ee37ada3241ed263d8d1c2901b030d964cbd161 (patch)
treeb37d4c173f5a7621e9304055875eca8d1939a069 /tests/template_tests
parent70f39e46f86b946c273340d52109824c776ffb4c (diff)
Fixed #30686 -- Used Python HTMLParser in utils.text.Truncator.
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/filter_tests/test_truncatewords_html.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/template_tests/filter_tests/test_truncatewords_html.py b/tests/template_tests/filter_tests/test_truncatewords_html.py
index 32b7c81a76..0cf41d83ae 100644
--- a/tests/template_tests/filter_tests/test_truncatewords_html.py
+++ b/tests/template_tests/filter_tests/test_truncatewords_html.py
@@ -24,7 +24,7 @@ class FunctionTests(SimpleTestCase):
truncatewords_html(
'<p>one <a href="#">two - three <br>four</a> five</p>', 4
),
- '<p>one <a href="#">two - three …</a></p>',
+ '<p>one <a href="#">two - three <br> …</a></p>',
)
def test_truncate3(self):
@@ -32,7 +32,7 @@ class FunctionTests(SimpleTestCase):
truncatewords_html(
'<p>one <a href="#">two - three <br>four</a> five</p>', 5
),
- '<p>one <a href="#">two - three <br>four …</a></p>',
+ '<p>one <a href="#">two - three <br>four</a> …</p>',
)
def test_truncate4(self):
@@ -53,7 +53,7 @@ class FunctionTests(SimpleTestCase):
truncatewords_html(
"<i>Buenos d&iacute;as! &#x00bf;C&oacute;mo est&aacute;?</i>", 3
),
- "<i>Buenos d&iacute;as! &#x00bf;C&oacute;mo …</i>",
+ "<i>Buenos días! ¿Cómo …</i>",
)
def test_invalid_arg(self):