From ea1104061a33b5c804b89958f5025ed4000d369f Mon Sep 17 00:00:00 2001 From: Stuart Axon Date: Sat, 14 Oct 2017 18:24:43 +0100 Subject: [PATCH] Update test_importer.py Try fix for download_attachments test --- pelican/tests/test_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tests/test_importer.py b/pelican/tests/test_importer.py index 6af59212..f2c704c3 100644 --- a/pelican/tests/test_importer.py +++ b/pelican/tests/test_importer.py @@ -378,7 +378,7 @@ class TestWordpressXMLAttachements(unittest.TestCase): bad_url = 'http://localhost:1/not_a_file.txt' silent_da = mute()(download_attachments) with temporary_folder() as temp: - locations = list(silent_da(temp, [good_url, bad_url])) + locations = list(silent_da(temp, [good_url, bad_url]).keys()) self.assertEqual(1, len(locations)) directory = locations[0] self.assertTrue(