mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Removed AUTHOR defaulting to OS User /John Doe, so both a blank or undefined (None) author is possible.
Reverted templates back to checking author object, since a None object is possible. Name could be checked for blank if required ATOM spec states an author element should be provided, so passes a blank name if not specified Updated unit test
This commit is contained in:
parent
94877e033b
commit
f7a2f8ea47
7 changed files with 18 additions and 19 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