diff options
| author | David Smith <smithdc@gmail.com> | 2023-01-03 20:48:06 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-02-07 09:46:25 +0100 |
| commit | 6ee37ada3241ed263d8d1c2901b030d964cbd161 (patch) | |
| tree | b37d4c173f5a7621e9304055875eca8d1939a069 /tests/template_tests | |
| parent | 70f39e46f86b946c273340d52109824c776ffb4c (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.py | 6 |
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ías! ¿Cómo está?</i>", 3 ), - "<i>Buenos días! ¿Cómo …</i>", + "<i>Buenos días! ¿Cómo …</i>", ) def test_invalid_arg(self): |
