Skip to content

Commit

Permalink
#10 unit test failures fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arulrajnet committed Sep 1, 2019
1 parent 9534a8b commit 254f7c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions tests/default_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_coverimages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 254f7c3

Please sign in to comment.