Update test_importer.py

Use attached_files named param, to match the rest of the test.
This commit is contained in:
Stuart Axon 2017-10-12 01:42:28 +01:00 committed by GitHub
commit cc474ff843

View file

@ -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):