mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
test that categories are ordered as expected
This commit is contained in:
parent
a72567fa36
commit
1efda9eb74
1 changed files with 4 additions and 0 deletions
|
|
@ -46,3 +46,7 @@ class TestArticlesGenerator(unittest.TestCase):
|
||||||
elif relfilepath == "article_without_category.rst":
|
elif relfilepath == "article_without_category.rst":
|
||||||
self.assertEquals(article.category.name, 'Default')
|
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