Add bdd tests for jrnl installation (#1513)

* Added bdd tests for jrnl installation
This commit is contained in:
Kevin 2022-06-25 12:47:05 -07:00 committed by GitHub
parent 23bc0f2c8f
commit 8b955ef002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 95 additions and 1 deletions

View file

@ -23,6 +23,8 @@ def when_we_change_directory(directory_name):
command = '(?P<command>[^"]*)'
input_method = "(?P<input_method>enter|pipe|type)"
all_input = '("(?P<all_input>[^"]*)")'
# Note: A line with only a raw newline r'\n' is treated as
# an empty line of input internally for testing purposes.
@when(parse('we run "jrnl {command}" and {input_method}\n{all_input}'))