From: Vladimír Vondruš Date: Sat, 16 Dec 2017 17:52:30 +0000 (+0100) Subject: theme: reduce random noise in test files. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=99b24c41b87f54b0720c7382ad15e6a4213aae98;p=blog.git theme: reduce random noise in test files. --- diff --git a/pelican-theme/test/__init__.py b/pelican-theme/test/__init__.py index 812fd462..b6e1b189 100644 --- a/pelican-theme/test/__init__.py +++ b/pelican-theme/test/__init__.py @@ -75,7 +75,7 @@ class BaseTestCase(MinimalTestCase): 'PLUGIN_PATHS': ['../pelican-plugins'], 'PLUGINS': ['m.htmlsanity'], 'THEME_STATIC_DIR': 'static', - 'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i', + 'M_CSS_FILES': ['https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i', 'static/m-dark.css'], # i.e., not rendering the category, tag and author lists as they # are not supported anyway @@ -89,6 +89,7 @@ class PageTestCase(BaseTestCase): def run_pelican(self, settings): implicit_settings = { 'M_FINE_PRINT': None, + 'M_DISABLE_SOCIAL_META_TAGS': True, 'PAGE_PATHS': ['.'], 'PAGE_SAVE_AS': '{slug}.html', 'PAGE_URL': '{slug}.html', @@ -103,6 +104,7 @@ class BlogTestCase(BaseTestCase): implicit_settings = { 'DATE_FORMATS': {'en': ('en_US.UTF-8', '%b %d, %Y')}, 'M_FINE_PRINT': None, + 'M_DISABLE_SOCIAL_META_TAGS': True, 'PAGE_PATHS': ['pages'], # doesn't exist 'ARTICLE_PATHS': ['.'], 'AUTHOR_SAVE_AS': 'author-{slug}.html', diff --git a/pelican-theme/test/blog/archives.html b/pelican-theme/test/blog/archives.html index b98e809e..d0854490 100644 --- a/pelican-theme/test/blog/archives.html +++ b/pelican-theme/test/blog/archives.html @@ -3,7 +3,7 @@ A Pelican Blog - + diff --git a/pelican-theme/test/blog/article-jumbo.html b/pelican-theme/test/blog/article-jumbo.html index e392bdde..9cf46ccc 100644 --- a/pelican-theme/test/blog/article-jumbo.html +++ b/pelican-theme/test/blog/article-jumbo.html @@ -3,7 +3,7 @@ An article — a jumbo one | A Pelican Blog - + diff --git a/pelican-theme/test/blog/article.html b/pelican-theme/test/blog/article.html index cb789539..05fdad7c 100644 --- a/pelican-theme/test/blog/article.html +++ b/pelican-theme/test/blog/article.html @@ -3,7 +3,7 @@ An article | A Pelican Blog - + diff --git a/pelican-theme/test/blog/author-explicit-author.html b/pelican-theme/test/blog/author-explicit-author.html index 86e885e3..cf4eade7 100644 --- a/pelican-theme/test/blog/author-explicit-author.html +++ b/pelican-theme/test/blog/author-explicit-author.html @@ -3,7 +3,7 @@ Posts by Explicit Author | A Pelican Blog - + diff --git a/pelican-theme/test/blog/category-another-category.html b/pelican-theme/test/blog/category-another-category.html index 6871aa14..4f1b0ec6 100644 --- a/pelican-theme/test/blog/category-another-category.html +++ b/pelican-theme/test/blog/category-another-category.html @@ -3,7 +3,7 @@ Another category | A Pelican Blog - + diff --git a/pelican-theme/test/blog/index.html b/pelican-theme/test/blog/index.html index 39e32393..b804f4c8 100644 --- a/pelican-theme/test/blog/index.html +++ b/pelican-theme/test/blog/index.html @@ -3,7 +3,7 @@ A Pelican Blog - + diff --git a/pelican-theme/test/blog/tag-third.html b/pelican-theme/test/blog/tag-third.html index 83ef88ee..9bc9d909 100644 --- a/pelican-theme/test/blog/tag-third.html +++ b/pelican-theme/test/blog/tag-third.html @@ -3,7 +3,7 @@ Posts tagged Third | A Pelican Blog - + diff --git a/pelican-theme/test/blog_author_list/article-jumbo.html b/pelican-theme/test/blog_author_list/article-jumbo.html index e3952fd0..ab955df8 100644 --- a/pelican-theme/test/blog_author_list/article-jumbo.html +++ b/pelican-theme/test/blog_author_list/article-jumbo.html @@ -1,20 +1,12 @@ - + A jumbo article | A Pelican Blog - + - - - - - - - -