diff --git a/tests/default_conf.py b/tests/default_conf.py index 63b49a1..0ea4d20 100644 --- a/tests/default_conf.py +++ b/tests/default_conf.py @@ -115,6 +115,18 @@ CSS_OVERRIDE = ['assets/css/myblog.css'] +# Jinja config - Pelican 4 +JINJA_ENVIRONMENT = { + 'extensions' :[ + 'jinja2.ext.loopcontrols', + 'jinja2.ext.i18n', + 'jinja2.ext.with_', + 'jinja2.ext.do' + ] +} + +JINJA_FILTERS = {'max': max} + # AUTHORS_BIO = { # "arul": { # "name": "Arul", diff --git a/tests/test_coverimages.py b/tests/test_coverimages.py index 18ec146..08182e6 100644 --- a/tests/test_coverimages.py +++ b/tests/test_coverimages.py @@ -59,7 +59,7 @@ def test_article_header_http_cover(self): def test_article_theme_cover(self): rstPath="content/article_without_cover.rst" result, soup = self.gen_article_and_html_from_rst(rstPath) - selected = soup.find(id="blog-header") + selected = soup.find(id="post-header") # Assertion self.assertTrue("class" not in selected)