mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Create directory if it doesn't exist (#963)
* create dir if it doesn't exist * switch order of print and creation * makedirs instead of mkdir and stderr printing * add test * black reformatting
This commit is contained in:
parent
ca73c74a8e
commit
74724b2185
3 changed files with 14 additions and 2 deletions
|
@ -113,3 +113,9 @@ Feature: Basic reading and writing to a journal
|
|||
2013-06-10 15:40 Life is good.
|
||||
"""
|
||||
And we should get no error
|
||||
|
||||
Scenario: Journal directory does not exist
|
||||
Given we use the config "missing_directory.yaml"
|
||||
When we run "jrnl Life is good"
|
||||
and we run "jrnl -n 1"
|
||||
Then the output should contain "Life is good"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue