mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
tests: avoid invalid HTML markup in the tests.
This commit is contained in:
parent
1f30306e23
commit
fb587e1ae6
1 changed files with 4 additions and 4 deletions
|
|
@ -294,28 +294,28 @@ class TestPage(LoggedTestCase):
|
|||
args['content'] = (
|
||||
'A simple test, with a '
|
||||
'<a href="|filename|article.rst'
|
||||
'?utm_whatever=234&highlight=word">link</a>'
|
||||
'?utm_whatever=234&highlight=word">link</a>'
|
||||
)
|
||||
content = Page(**args).get_content('http://notmyidea.org')
|
||||
self.assertEqual(
|
||||
content,
|
||||
'A simple test, with a '
|
||||
'<a href="http://notmyidea.org/article.html'
|
||||
'?utm_whatever=234&highlight=word">link</a>'
|
||||
'?utm_whatever=234&highlight=word">link</a>'
|
||||
)
|
||||
|
||||
# combination
|
||||
args['content'] = (
|
||||
'A simple test, with a '
|
||||
'<a href="|filename|article.rst'
|
||||
'?utm_whatever=234&highlight=word#section-2">link</a>'
|
||||
'?utm_whatever=234&highlight=word#section-2">link</a>'
|
||||
)
|
||||
content = Page(**args).get_content('http://notmyidea.org')
|
||||
self.assertEqual(
|
||||
content,
|
||||
'A simple test, with a '
|
||||
'<a href="http://notmyidea.org/article.html'
|
||||
'?utm_whatever=234&highlight=word#section-2">link</a>'
|
||||
'?utm_whatever=234&highlight=word#section-2">link</a>'
|
||||
)
|
||||
|
||||
# also test for summary in metadata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue