mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
unittest multiple overrides
This commit is contained in:
parent
36623c1100
commit
bd61a78fba
3 changed files with 28 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
from features.steps.override import config_override
|
||||
import shlex
|
||||
|
||||
import pytest
|
||||
|
@ -218,6 +219,16 @@ def test_color_override():
|
|||
'--config-override \'{"colors.body": "blue"}\''
|
||||
) == expected_args(config_override={"colors.body": "blue"})
|
||||
|
||||
def test_multiple_overrides():
|
||||
assert cli_as_dict(
|
||||
'--config-override \'{"colors.title": "green", "editor":"", "journal.scratchpad": "/tmp/scratchpad"}\''
|
||||
) == expected_args(
|
||||
config_override={
|
||||
"colors.title": "green",
|
||||
"journal.scratchpad": "/tmp/scratchpad",
|
||||
"editor": ""
|
||||
}
|
||||
)
|
||||
|
||||
# @see https://github.com/jrnl-org/jrnl/issues/520
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue