forked from github/pelican
parent
bb0ed26fdd
commit
4201256a5b
6 changed files with 56 additions and 7 deletions
|
|
@ -183,15 +183,16 @@ class TestCache(unittest.TestCase):
|
|||
generator.readers.read_file = MagicMock()
|
||||
generator.generate_context()
|
||||
"""
|
||||
6 files don't get cached because they were not valid
|
||||
7 files don't get cached because they were not valid
|
||||
- article_with_attributes_containing_double_quotes.html
|
||||
- article_with_comments.html
|
||||
- article_with_null_attributes.html
|
||||
- 2012-11-30_md_w_filename_meta#foo-bar.md
|
||||
- empty.md
|
||||
- empty_with_bom.md
|
||||
- article_skip.md
|
||||
"""
|
||||
self.assertEqual(generator.readers.read_file.call_count, 6)
|
||||
self.assertEqual(generator.readers.read_file.call_count, 7)
|
||||
|
||||
def test_article_reader_content_caching(self):
|
||||
"""Test raw article content caching at the reader level"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue