chiark / gitweb /
theme: forgot to check against some test files.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 16 Dec 2017 11:25:28 +0000 (12:25 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 16 Dec 2017 11:25:28 +0000 (12:25 +0100)
pelican-theme/test/test_blog.py

index e56d6d2bd4cfaab3b3af7baa72839d6f732a9834..f1870c556412aac09f20c221c5493739d8b65546 100644 (file)
@@ -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)