From cc474ff8431223fcf0d94891a975fbef672ceb54 Mon Sep 17 00:00:00 2001 From: Stuart Axon Date: Thu, 12 Oct 2017 01:42:28 +0100 Subject: [PATCH] Update test_importer.py Use attached_files named param, to match the rest of the test. --- pelican/tests/test_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/tests/test_importer.py b/pelican/tests/test_importer.py index 37fcb904..fe9b715a 100644 --- a/pelican/tests/test_importer.py +++ b/pelican/tests/test_importer.py @@ -225,7 +225,7 @@ class TestWordpressXmlImporter(unittest.TestCase): def test_decode_wp_content_returns_empty(self): """ 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): """ 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: decoded_content = decoded_file.read() self.assertEqual( - decode_wp_content(encoded_content, None, br=False), + decode_wp_content(encoded_content, attached_files=None, br=False), decoded_content) def test_preserve_verbatim_formatting(self):