Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions features/export.feature
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Feature: Export content.
"""

When I run `wp export --post_type=page --post_status=draft`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -100,7 +100,7 @@ Feature: Export content.
"""

When I run `wp export --post_type=page,post`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -175,8 +175,7 @@ Feature: Export content.
"""

When I run `wp export --post__in={POST_ID}`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}

Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}
And the {EXPORT_FILE} file should not contain:
"""
<wp:post_id>{ATTACHMENT_ID}</wp:post_id>
Expand Down Expand Up @@ -223,7 +222,7 @@ Feature: Export content.
And save STDOUT as {POST_ID_TWO}

When I run `wp export --post__in="{POST_ID} {POST_ID_TWO}"`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -256,7 +255,7 @@ Feature: Export content.
And save STDOUT as {POST_ID_TWO}

When I run `wp export --post__in="{POST_ID},{POST_ID_TWO}"`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -291,7 +290,7 @@ Feature: Export content.
"""

When I run `wp export --post_type=post --start_date=2013-08-02 --end_date=2013-08-02`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -522,7 +521,7 @@ Feature: Export content.
"""

When I run `wp export --start_id=6`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -557,7 +556,7 @@ Feature: Export content.
"""

When I run `wp export --post_type__not_in=post`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -585,7 +584,7 @@ Feature: Export content.
"""

When I run `wp export --post_type__not_in=post,page`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down Expand Up @@ -662,7 +661,7 @@ Feature: Export content.
"""

When I run `wp export --skip_comments`
And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
Then save STDOUT 'Writing to file %s' as {EXPORT_FILE}

When I run `wp site empty --yes`
Then STDOUT should not be empty
Expand Down