From: Vladimír Vondruš Date: Sat, 16 Dec 2017 11:25:28 +0000 (+0100) Subject: theme: forgot to check against some test files. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=34765c39b2f51b794823df861fdc09bd48d99700;p=blog.git theme: forgot to check against some test files. --- diff --git a/pelican-theme/test/test_blog.py b/pelican-theme/test/test_blog.py index e56d6d2b..f1870c55 100644 --- a/pelican-theme/test/test_blog.py +++ b/pelican-theme/test/test_blog.py @@ -240,6 +240,9 @@ class HideSummaryArticle(BlogTestCase): self.assertEqual(*self.actual_expected_contents('article.html', '../blog_hide_summary_global/article.html')) self.assertEqual(*self.actual_expected_contents('article-jumbo.html', '../blog_hide_summary_global/article-jumbo.html')) + # Category (and other listing) has always just the summary + self.assertEqual(*self.actual_expected_contents('category-misc.html', '../blog_hide_summary_global/category-misc.html')) + class HideSummaryBoth(BlogTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'hide_summary_both', *args, **kwargs) @@ -258,6 +261,9 @@ class HideSummaryBoth(BlogTestCase): self.assertEqual(*self.actual_expected_contents('article.html')) self.assertEqual(*self.actual_expected_contents('article-jumbo.html')) + # Category (and other listing) has always just the summary + self.assertEqual(*self.actual_expected_contents('category-misc.html')) + class CollapseFirstGlobalHideSummaryGlobal(BlogTestCase): def __init__(self, *args, **kwargs): super().__init__(__file__, 'collapse_first_global_hide_summary_global', *args, **kwargs)