mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
Fix FolderJournal path tests for Windows paths
This commit is contained in:
parent
71f918d878
commit
8a4fe0ec81
2 changed files with 6 additions and 6 deletions
|
@ -15,7 +15,7 @@ Feature: Testing a journal with a root directory and multiple files in the forma
|
|||
When we run "jrnl 23 July 2013: Testing folder journal."
|
||||
Then we should see the message "Entry added"
|
||||
When the journal directory is listed
|
||||
Then the output should contain "2013/07/23.txt"
|
||||
Then the output should contain "2013/07/23.txt" or "2013\07\23.txt"
|
||||
|
||||
|
||||
Scenario: Adding multiple entries to a Folder journal should generate multiple date files
|
||||
|
@ -24,9 +24,8 @@ Feature: Testing a journal with a root directory and multiple files in the forma
|
|||
And we run "jrnl 3/7/2014: Second entry of journal."
|
||||
Then we should see the message "Entry added"
|
||||
When the journal directory is listed
|
||||
Then the output should contain "2013/07/23.txt"
|
||||
And the output should contain "2014/03/07.txt"
|
||||
|
||||
Then the output should contain "2013/07/23.txt" or "2013\07\23.txt"
|
||||
Then the output should contain "2014/03/07.txt" or "2014\03\07.txt"
|
||||
|
||||
Scenario: Out of order entries to a Folder journal should be listed in date order
|
||||
Given we use the config "empty_folder.yaml"
|
||||
|
|
|
@ -210,10 +210,11 @@ def check_output_time_inline(context, text):
|
|||
|
||||
@then("the output should contain")
|
||||
@then('the output should contain "{text}"')
|
||||
def check_output_inline(context, text=None):
|
||||
@then('the output should contain "{text}" or "{text2}"')
|
||||
def check_output_inline(context, text=None, text2=None):
|
||||
text = text or context.text
|
||||
out = context.stdout_capture.getvalue()
|
||||
assert text in out, text
|
||||
assert (text in out or text2 in out), text or text2
|
||||
|
||||
|
||||
@then('the output should not contain "{text}"')
|
||||
|
|
Loading…
Add table
Reference in a new issue