forked from github/pelican
Bug #1493 — Memoize slugify when possible
This commit is contained in:
parent
7feb638b5c
commit
e39dc95c3b
3 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue