From 99b24c41b87f54b0720c7382ad15e6a4213aae98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 16 Dec 2017 18:52:30 +0100 Subject: [PATCH] theme: reduce random noise in test files. --- pelican-theme/test/__init__.py | 4 +++- pelican-theme/test/blog/archives.html | 2 +- pelican-theme/test/blog/article-jumbo.html | 2 +- pelican-theme/test/blog/article.html | 2 +- .../test/blog/author-explicit-author.html | 2 +- .../test/blog/category-another-category.html | 2 +- pelican-theme/test/blog/index.html | 2 +- pelican-theme/test/blog/tag-third.html | 2 +- .../test/blog_author_list/article-jumbo.html | 12 ++-------- .../test/blog_author_list/index.html | 10 ++------- .../test/blog_collapse_first_both/index.html | 10 ++------- .../article-jumbo.html | 14 ++---------- .../article.html | 12 ++-------- .../index.html | 10 ++------- .../article-jumbo.html | 14 ++---------- .../article.html | 12 ++-------- .../index.html | 10 ++------- .../blog_collapse_first_global/index.html | 10 ++------- .../article-jumbo.html | 14 ++---------- .../article.html | 12 ++-------- .../index.html | 10 ++------- .../article-jumbo.html | 14 ++---------- .../article.html | 12 ++-------- .../index.html | 10 ++------- .../test/blog_footer_links/index.html | 10 ++------- .../test/blog_global_social_meta/article.html | 2 +- .../author-the-author.html | 2 +- .../category-a-category.html | 2 +- .../blog_global_social_meta/tag-a-tag.html | 2 +- .../blog_hide_summary_both/article-jumbo.html | 14 ++---------- .../test/blog_hide_summary_both/article.html | 12 ++-------- .../blog_hide_summary_both/category-misc.html | 10 ++------- .../test/blog_hide_summary_both/index.html | 10 ++------- .../article-jumbo.html | 14 ++---------- .../blog_hide_summary_global/article.html | 12 ++-------- .../category-misc.html | 10 ++------- .../test/blog_hide_summary_global/index.html | 10 ++------- .../test/blog_html_escape/archives.html | 2 +- .../test/blog_html_escape/archives2.html | 2 +- .../test/blog_html_escape/article-jumbo.html | 2 +- .../test/blog_html_escape/article.html | 2 +- .../author-and-in-author.html | 2 +- .../author-and-in-author2.html | 2 +- .../category-and-in-category.html | 2 +- .../category-and-in-category2.html | 2 +- .../test/blog_html_escape/index.html | 2 +- .../test/blog_html_escape/index2.html | 2 +- .../test/blog_html_escape/tag-and-in-tag.html | 2 +- .../blog_html_escape/tag-and-in-tag2.html | 2 +- .../blog_jumbo_inverted/article-jumbo.html | 12 ++-------- .../test/blog_minimal/article-jumbo.html | 2 +- pelican-theme/test/blog_minimal/article.html | 2 +- .../test/blog_minimal/category-misc.html | 2 +- pelican-theme/test/blog_minimal/index.html | 2 +- .../test/blog_modified_date/index.html | 10 ++------- .../test/blog_pagination/category-misc.html | 2 +- .../test/blog_pagination/category-misc2.html | 2 +- .../test/blog_pagination/category-misc3.html | 2 +- pelican-theme/test/blog_pagination/index.html | 2 +- .../test/blog_pagination/index2.html | 2 +- .../test/blog_pagination/index3.html | 2 +- .../test/blog_pagination_disabled/index.html | 10 ++------- pelican-theme/test/layout/features.html | 2 +- .../test/layout/guest-post-howto.html | 2 +- pelican-theme/test/layout/index.html | 2 +- .../test/layout/showcase-requirements.html | 2 +- .../test/layout_disable_blog_links/index.html | 10 ++------- .../test/layout_disable_fine_print/index.html | 10 ++------- .../layout_global_social_meta/archives.html | 2 +- .../test/layout_global_social_meta/index.html | 2 +- .../test/layout_html_escape/index.html | 2 +- pelican-theme/test/layout_minimal/index.html | 2 +- .../test/layout_no_footer/index.html | 10 ++------- .../test/layout_one_column_navbar/index.html | 19 ++-------------- pelican-theme/test/page/page.html | 2 +- pelican-theme/test/page_breadcrumb/page.html | 2 +- .../test/page_breadcrumb/subpage.html | 2 +- pelican-theme/test/page_extra_css/page.html | 10 ++------- .../test/page_global_social_meta/page.html | 2 +- .../test/page_header_footer/page.html | 12 ++-------- .../test/page_html_escape/breadcrumb.html | 2 +- .../test/page_html_escape/content.html | 2 +- .../test/page_html_escape/landing.html | 2 +- pelican-theme/test/page_html_escape/page.html | 2 +- .../test/page_landing/hide-navbar-brand.html | 2 +- pelican-theme/test/page_landing/page.html | 2 +- pelican-theme/test/page_minimal/page.html | 2 +- .../test/page_title_sitename_alias/page.html | 10 ++------- pelican-theme/test/test_blog.py | 20 +++++++++++++---- pelican-theme/test/test_layout.py | 9 ++++++-- pelican-theme/test/test_page.py | 22 +++++++++++++++---- 91 files changed, 166 insertions(+), 394 deletions(-) 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 - + - - - - - - - -