1
0
Fork 0
forked from github/pelican

Bug #1493 — Memoize slugify when possible

This commit is contained in:
Alexis Métaireau 2014-10-09 11:27:53 +02:00
commit e39dc95c3b
3 changed files with 4 additions and 2 deletions

View file

@ -388,7 +388,7 @@ class TestArticle(TestPage):
def test_slugify_category_author(self):
settings = get_settings()
settings['SLUG_SUBSTITUTIONS'] = [ ('C#', 'csharp') ]
settings['SLUG_SUBSTITUTIONS'] = (('C#', 'csharp'),)
settings['ARTICLE_URL'] = '{author}/{category}/{slug}/'
settings['ARTICLE_SAVE_AS'] = '{author}/{category}/{slug}/index.html'
article_kwargs = self._copy_page_kwargs()