mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 15:36:14 +02:00
forward override unpacking to yaml library
This commit is contained in:
parent
bd0394c124
commit
ca8e9f85e4
2 changed files with 10 additions and 17 deletions
|
@ -266,7 +266,7 @@ class TestDeserialization:
|
|||
@pytest.mark.parametrize(
|
||||
"input_str",
|
||||
[
|
||||
["editor", '"nano"'],
|
||||
["editor", "nano"],
|
||||
["colors.title", "blue"],
|
||||
["default", "/tmp/egg.txt"],
|
||||
],
|
||||
|
@ -285,8 +285,8 @@ class TestDeserialization:
|
|||
cfg = deserialize_config_args(["encrypt", "false"])
|
||||
assert cfg["encrypt"] == False
|
||||
|
||||
cfg = deserialize_config_args(["editor", '"vi -c startinsert"'])
|
||||
assert cfg["editor"] == '"vi -c startinsert"'
|
||||
cfg = deserialize_config_args(["editor", "vi -c startinsert"])
|
||||
assert cfg["editor"] == "vi -c startinsert"
|
||||
|
||||
cfg = deserialize_config_args(["highlight", "true"])
|
||||
assert cfg["highlight"] == True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue