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 8892d08

Browse files
committedJul 7, 2015
Fixed some more typos and tests.
1 parent 0cae3cc commit 8892d08

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎nikola/plugins/command/import_wordpress.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _read_options(self, options, args):
167167
self.import_empty_items = options.get('include_empty_items', False)
168168

169169
self.export_categories_as_categories = options.get('export_categories_as_categories', False)
170-
self.read_comments = options.get('read_comments', False)
170+
self.export_comments = options.get('export_comments', False)
171171

172172
self.auth = None
173173
if options.get('download_auth') is not None:
@@ -710,7 +710,7 @@ def import_item(self, item, wordpress_namespace, out_folder=None):
710710
out_folder, out_content_filename),
711711
content)
712712

713-
if self.read_comments:
713+
if self.export_comments:
714714
comments = []
715715
for tag in item.findall('{{{0}}}comment'.format(wordpress_namespace)):
716716
comment = self._extract_comment(tag, wordpress_namespace)

‎tests/test_command_import_wordpress.py

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ def test_importing_posts_and_attachments(self):
194194
self.import_command.output_folder = 'new_site'
195195
self.import_command.squash_newlines = True
196196
self.import_command.no_downloads = False
197+
self.import_command.export_categories_as_categories = False
198+
self.import_command.export_comments = False
197199

198200
# Ensuring clean results
199201
self.import_command.url_map = {}

0 commit comments

Comments
 (0)
Please sign in to comment.