mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add an test related to articles' category.
This commit is contained in:
parent
4efca13c33
commit
cffb44891a
4 changed files with 40 additions and 1 deletions
6
tests/content/TestCategory/article_with_category.rst
Normal file
6
tests/content/TestCategory/article_with_category.rst
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
This is an article with category !
|
||||
##################################
|
||||
|
||||
:category: yeah
|
||||
|
||||
This article should be in 'yeah' category.
|
||||
4
tests/content/TestCategory/article_without_category.rst
Normal file
4
tests/content/TestCategory/article_without_category.rst
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
This is an article without category !
|
||||
#####################################
|
||||
|
||||
This article should be in 'TestCategory' category.
|
||||
6
tests/content/article_without_category.rst
Normal file
6
tests/content/article_without_category.rst
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
This is an article without category !
|
||||
#####################################
|
||||
|
||||
This article should be in the DEFAULT_CATEGORY.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue