Skip to content

Commit

Permalink
Fixed bug in unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 29, 2015
1 parent 7a17f12 commit 3032349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_command_import_wordpress.py
Expand Up @@ -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),
Expand Down

0 comments on commit 3032349

Please sign in to comment.