Get HtmlReader to work again

wrote unit tests and documentation, improved regular expression.
The HtmlReader is enabled by default now and parses metadata in html
files of the form:
<!-- key:value -->
This commit is contained in:
Florian Jacob 2012-09-02 10:09:08 +02:00
commit 39db9ddcfd
7 changed files with 72 additions and 15 deletions

View file

@ -73,7 +73,8 @@ class TestArticlesGenerator(unittest.TestCase):
[u'This is an article with category !', 'published', 'yeah', 'article'],
[u'This is an article without category !', 'published', 'Default', 'article'],
[u'This is an article without category !', 'published', 'TestCategory', 'article'],
[u'This is a super article !', 'published', 'yeah', 'article']
[u'This is a super article !', 'published', 'yeah', 'article'],
[u'A great html article with metadata', 'published', u'yeah', 'article']
]
self.assertItemsEqual(articles_expected, articles)