Add display format option to config file. (#1050)

* Add display format option to config file.
* Add tests.
* Fix `black` error.
* Change nested if to top level.
This commit is contained in:
joaquin garmendia 2020-10-17 18:14:16 -05:00 committed by Jonathan Wren
parent 05d0a0cc83
commit 8c2de0e6d7
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
5 changed files with 67 additions and 2 deletions

View file

@ -512,3 +512,26 @@ Feature: Custom formats
| basic_encrypted |
| basic_folder |
| basic_dayone |
Scenario: Markdown Support from config file
Given we use the config "format_md.yaml"
When we run "jrnl -n 1"
Then the output should be
"""
# 2013
## June
### 2013-06-10 15:40 Life is good.
But I'm better.
"""
Scenario: Text Formatter from config file
Given we use the config "format_text.yaml"
When we run "jrnl -n 1"
Then the output should be
"""
[2013-06-10 15:40] Life is good.
But I'm better.
"""