Fix tests

This commit is contained in:
Aaron Lichtman 2023-03-13 19:24:45 -07:00
parent dbc98749cc
commit 5908ae6667
No known key found for this signature in database
GPG key ID: D046D019DC745EDA
3 changed files with 29 additions and 21 deletions

View file

@ -51,8 +51,7 @@ Feature: Using templates
Given we use the config "<config_file>"
And we use the password "test" if prompted
When we run "jrnl --template features/templates/basic.template"
And we run "jrnl -1"
Then the output should contain "This text is in the basic template"
Then the output should contain "No entry to save, because the template was not changed"
Examples: configs
| config_file |
@ -61,29 +60,13 @@ Feature: Using templates
| basic_folder.yaml |
| basic_dayone.yaml |
@todo
Scenario Outline: --template absolute_filepath should be used in new entry
Given we use the config "<config_file>"
And we use the password "test" if prompted
When we run "jrnl --template /tmp/basic.template"
And we run "jrnl -1"
Then the output should contain "This text is in the basic template"
Examples: configs
| config_file |
| basic_onefile.yaml |
| basic_encrypted.yaml |
| basic_folder.yaml |
| basic_dayone.yaml |
@todo
Scenario Outline: --template file_in_XDG_templates_dir should be used in new entry
Given we use the config "<config_file>"
And we use the password "test" if prompted
And we copy the template "basic.template" to the default templates folder
When we run "jrnl --template basic.template"
And we run "jrnl -1"
Then the output should contain "This text is in the basic template"
Then the output should contain "No entry to save, because the template was not changed"
Examples: configs
| config_file |