Implement stream redirection in pytest-bdd

- Take out old steps from format and input tests

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
Jonathan Wren 2021-05-22 12:32:59 -07:00
parent 512fb63e1f
commit 44b1762b7d
3 changed files with 14 additions and 8 deletions

View file

@ -163,7 +163,6 @@ Feature: Custom formats
More stuff
more stuff again
Then we flush the output
When we run "jrnl -1 --export markdown"
Then the output should be
# 2020
@ -224,7 +223,6 @@ Feature: Custom formats
[2020-10-29 11:11] First entry.
[2020-10-29 11:11] Second entry.
[2020-10-29 11:13] Third entry.
Then we flush the output
When we run "jrnl -3 --format markdown"
Then the output should be
# 2020

View file

@ -4,8 +4,7 @@ Feature: Importing data
Given we use the config "<config_file>"
And we use the password "test" if prompted
When we run "jrnl --import" and pipe "[2020-07-05 15:00] Observe and import."
Then we flush the output
When we run "jrnl -c import"
When we run "jrnl -9 --short"
Then the output should contain "Observe and import"
Examples: Configs