mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge branch 'pr/555'
Conflicts: pelican/contents.py
This commit is contained in:
commit
c787e02dcc
4 changed files with 10 additions and 10 deletions
|
|
@ -40,8 +40,11 @@ class TestPage(unittest.TestCase):
|
|||
|
||||
def test_mandatory_properties(self):
|
||||
"""If the title is not set, must throw an exception."""
|
||||
self.assertRaises(AttributeError, Page, 'content')
|
||||
page = Page(**self.page_kwargs)
|
||||
page = Page('content')
|
||||
with self.assertRaises(NameError) as cm:
|
||||
page.check_properties()
|
||||
|
||||
page = Page('content', metadata={'title': 'foobar'})
|
||||
page.check_properties()
|
||||
|
||||
def test_summary_from_metadata(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue