mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
flake8-ed the tests
This commit is contained in:
parent
80edafbe50
commit
20662c2a43
10 changed files with 158 additions and 146 deletions
|
|
@ -53,8 +53,9 @@ class TestWordpressXmlImporter(unittest.TestCase):
|
|||
posts = list(self.posts)
|
||||
test_posts = [post for post in posts if post[2] == 'html-entity-test']
|
||||
self.assertTrue(len(test_posts) == 1)
|
||||
|
||||
|
||||
post = test_posts[0]
|
||||
title = post[0]
|
||||
self.assertTrue(title, "A normal post with some <html> entities in the title. You can't miss them.")
|
||||
self.assertTrue(title, "A normal post with some <html> entities in the"
|
||||
" title. You can't miss them.")
|
||||
self.assertTrue('&' not in title)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue