Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 95826fc

Browse files
committedJul 13, 2015
Fixed attachment metadata writing test.
1 parent c504057 commit 95826fc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
 

Diff for: ‎tests/test_command_import_wordpress.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,15 @@ def test_importing_posts_and_attachments(self):
250250

251251
self.assertTrue(write_attachments_info.called)
252252
write_attachments_info.assert_any_call('new_site/posts/2008/07/arzt-und-pfusch-s-i-c-k.attachments.json'.replace('/', os.sep),
253-
{10: ['/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover.png',
254-
'/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover-150x150.png']})
253+
{10: {'wordpress_user_name': 'Niko',
254+
'files_meta': [{'width': 300, 'height': 299},
255+
{'width': b'150', 'size': 'thumbnail', 'height': b'150'}],
256+
'excerpt': 'Arzt+Pfusch - S.I.C.K.',
257+
'date_utc': '2009-07-16 19:40:37',
258+
'content': 'Das Cover von Arzt+Pfusch - S.I.C.K.',
259+
'files': ['/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover.png',
260+
'/wp-content/uploads/2008/07/arzt_und_pfusch-sick-cover-150x150.png'],
261+
'title': 'Arzt+Pfusch - S.I.C.K.'}})
255262

256263
write_content.assert_any_call(
257264
'new_site/posts/2008/07/arzt-und-pfusch-s-i-c-k.md'.replace('/', os.sep),

0 commit comments

Comments
 (0)
Please sign in to comment.