예제 #1
0
파일: test_config.py 프로젝트: AABur/ward
def _(opt=each("exclude")):
    file_config = {opt: ["a", "b", "c"]}
    cli_config = {opt: ["a"]}
    assert apply_multi_defaults(file_config, cli_config) == {"path": ["."]}
예제 #2
0
파일: test_config.py 프로젝트: AABur/ward
def _():
    file_config = {"path": ["a"]}
    cli_config = {"another_multi_option": "abc"}
    assert apply_multi_defaults(file_config, cli_config) == file_config
예제 #3
0
파일: test_config.py 프로젝트: AABur/ward
def _():
    file_config = {"path": "a"}
    cli_config = {"another": ["a"]}
    assert apply_multi_defaults(file_config, cli_config) == {"path": ["a"]}
예제 #4
0
파일: test_config.py 프로젝트: AABur/ward
def _():
    file_config = {"path": ["a", "b", "c"]}
    cli_config = {"path": ["a"]}
    assert apply_multi_defaults(file_config, cli_config) == {}