Skip to content
Permalink
Browse files

Fixed bug in unit test.

  • Loading branch information
felixfontein committed Jun 29, 2015
1 parent 7a17f12 commit 3032349e42f50e5e9f49e8031afa35455803a2a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/test_command_import_wordpress.py
@@ -218,7 +218,7 @@ def test_importing_posts_and_attachments(self):
self.assertTrue(write_metadata.called)
write_metadata.assert_any_call(
'new_site/stories/kontakt.meta'.replace('/', os.sep), 'Kontakt',
'kontakt', '2009-07-16 20:20:32', None, [])
'kontakt', '2009-07-16 20:20:32', '', [])

This comment has been minimized.

Copy link
@felixfontein

felixfontein Jun 30, 2015

Author Contributor

The fifth parameter is description, which is obtained via description = get_text_tag(item, 'description', ''). The function get_text_tag should have never returned None, but the default text ''. Therefore, when fixing get_text_tag, this unit test must be fixed as well.


self.assertTrue(write_content.called)
write_content.assert_any_call('new_site/posts/2007/04/hoert.wp'.replace('/', os.sep),

0 comments on commit 3032349

Please sign in to comment.
You can’t perform that action at this time.