mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge branch 'fix-sort-categories' into fix-functional-tests
This commit is contained in:
commit
79e7ccce29
12 changed files with 74 additions and 32 deletions
|
|
@ -46,3 +46,7 @@ class TestArticlesGenerator(unittest.TestCase):
|
|||
elif relfilepath == "article_without_category.rst":
|
||||
self.assertEquals(article.category.name, 'Default')
|
||||
|
||||
categories = [cat.name for cat, _ in generator.categories]
|
||||
# assert that the categories are ordered as expected
|
||||
self.assertEquals(
|
||||
categories, ['Default', 'TestCategory', 'Yeah', 'yeah'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue