Update test_importer.py

Try fix for download_attachments test
This commit is contained in:
Stuart Axon 2017-10-14 18:24:43 +01:00 committed by GitHub
commit ea1104061a

View file

@ -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(