1
0
Fork 0
forked from github/pelican

test_readers: test reading empty Markdown files

This commit is contained in:
Will Thompson 2016-08-15 11:18:24 +01:00
commit 85a860d5dd
4 changed files with 21 additions and 2 deletions

View file

@ -56,13 +56,15 @@ class TestCache(unittest.TestCase):
generator.readers.read_file = MagicMock()
generator.generate_context()
"""
4 files don't get cached because they were not valid
6 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
"""
self.assertEqual(generator.readers.read_file.call_count, 4)
self.assertEqual(generator.readers.read_file.call_count, 6)
@unittest.skipUnless(MagicMock, 'Needs Mock module')
def test_article_reader_content_caching(self):