mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Update test_importer.py
Use attached_files named param, to match the rest of the test.
This commit is contained in:
parent
d41b70316c
commit
cc474ff843
1 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ class TestWordpressXmlImporter(unittest.TestCase):
|
||||||
|
|
||||||
def test_decode_wp_content_returns_empty(self):
|
def test_decode_wp_content_returns_empty(self):
|
||||||
""" Check that given an empty string we return an empty string."""
|
""" Check that given an empty string we return an empty string."""
|
||||||
self.assertEqual(decode_wp_content("", None), "")
|
self.assertEqual(decode_wp_content(""), "")
|
||||||
|
|
||||||
def test_decode_wp_content(self):
|
def test_decode_wp_content(self):
|
||||||
""" Check that we can decode a wordpress content string."""
|
""" Check that we can decode a wordpress content string."""
|
||||||
|
|
@ -234,7 +234,7 @@ class TestWordpressXmlImporter(unittest.TestCase):
|
||||||
with open(WORDPRESS_DECODED_CONTENT_SAMPLE, 'r') as decoded_file:
|
with open(WORDPRESS_DECODED_CONTENT_SAMPLE, 'r') as decoded_file:
|
||||||
decoded_content = decoded_file.read()
|
decoded_content = decoded_file.read()
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
decode_wp_content(encoded_content, None, br=False),
|
decode_wp_content(encoded_content, attached_files=None, br=False),
|
||||||
decoded_content)
|
decoded_content)
|
||||||
|
|
||||||
def test_preserve_verbatim_formatting(self):
|
def test_preserve_verbatim_formatting(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue