mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Fix missing parentheses and remove skip_win on test that is passing in Windows now
This commit is contained in:
parent
3c4dc79e8a
commit
00e25f30fd
3 changed files with 3 additions and 4 deletions
|
@ -396,7 +396,6 @@ Feature: Custom formats
|
|||
| basic_folder |
|
||||
| basic_dayone |
|
||||
|
||||
@skip_win
|
||||
Scenario Outline: Export to yaml
|
||||
Given we use the config "<config>.yaml"
|
||||
And we use the password "test" if prompted
|
||||
|
|
|
@ -15,4 +15,4 @@ def on_posix():
|
|||
|
||||
def split_args(args):
|
||||
"""Split arguments and add escape characters as appropriate for the OS"""
|
||||
return shlex.split(args, posix=on_posix)
|
||||
return shlex.split(args, posix=on_posix())
|
||||
|
|
|
@ -67,7 +67,7 @@ def test_on_posix(systems):
|
|||
)
|
||||
def test_split_args_on_windows(args):
|
||||
input_arguments, expected_split_args = args[0], args[1]
|
||||
with mock.patch("jrnl.os_compat.on_windows", True):
|
||||
with mock.patch("jrnl.os_compat.on_windows", lambda: True):
|
||||
assert split_args(input_arguments) == expected_split_args
|
||||
|
||||
|
||||
|
@ -83,5 +83,5 @@ def test_split_args_on_windows(args):
|
|||
)
|
||||
def test_split_args_on_not_windows(args):
|
||||
input_arguments, expected_split_args = args[0], args[1]
|
||||
with mock.patch("jrnl.os_compat.on_windows", True):
|
||||
with mock.patch("jrnl.os_compat.on_windows", lambda: True):
|
||||
assert split_args(input_arguments) == expected_split_args
|
||||
|
|
Loading…
Add table
Reference in a new issue