From fbe4a587c559628f64c634181ad8811e90b2b81d Mon Sep 17 00:00:00 2001 From: "(GalaxyMaster)" Date: Thu, 9 Sep 2021 00:57:51 +1000 Subject: [PATCH] Made flake8 happy --- pelican/tests/test_utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pelican/tests/test_utils.py b/pelican/tests/test_utils.py index bca783cb..a189fbab 100644 --- a/pelican/tests/test_utils.py +++ b/pelican/tests/test_utils.py @@ -6,10 +6,10 @@ import time from sys import platform from tempfile import mkdtemp -import pytz - from markupsafe import Markup +import pytz + from pelican import utils from pelican.generators import TemplatePagesGenerator from pelican.readers import Readers @@ -239,26 +239,26 @@ class TestUtils(LoggedTestCase): # marker containing HTML tags. self.assertEqual( utils.truncate_html_words('

' + 'word ' * 100 + '

', 20, - 'marker'), + 'marker'), '

' + 'word ' * 20 + 'marker

') self.assertEqual( utils.truncate_html_words( - '' + 'word ' * 100 + '', 20, - 'marker'), + '' + 'word ' * 100 + '', 20, + 'marker'), '' + 'word ' * 20 + 'marker') self.assertEqual( utils.truncate_html_words('
' + 'word ' * 100, 20, - 'marker'), + 'marker'), '
' + 'word ' * 20 + 'marker') self.assertEqual( utils.truncate_html_words('' + 'word ' * 100, 20, - 'marker'), + 'marker'), '' + 'word ' * 20 + 'marker') # Words with HTML tags and a Jinja2 generated end marker (Markup) self.assertEqual( utils.truncate_html_words('

' + 'word ' * 100 + '

', 20, - Markup('marker')), + Markup('marker')), '

' + 'word ' * 20 + 'marker

') # Words with hypens and apostrophes.