forked from github/pelican
Split multiple authors on ','
This commit is contained in:
parent
58e817cb0f
commit
05d357e98e
3 changed files with 8 additions and 2 deletions
6
pelican/tests/content/article_with_multiple_authors.html
Normal file
6
pelican/tests/content/article_with_multiple_authors.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>This is an article with multiple authors!</title>
|
||||
<meta name="authors" content="First Author, Second Author" />
|
||||
</head>
|
||||
</html>
|
||||
|
|
@ -361,7 +361,7 @@ class HTMLReaderTest(ReaderTest):
|
|||
self.assertEqual(value, page.metadata[key], key)
|
||||
|
||||
def test_article_with_multiple_authors(self):
|
||||
page = self.read_file(path='article_with_multiple_authors.rst')
|
||||
page = self.read_file(path='article_with_multiple_authors.html')
|
||||
expected = {
|
||||
'authors': ['First Author', 'Second Author']
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue