Example #1
0
def test_check_handle_option_defines_no_check():
    cfg = Config(DEFAULT_CFG)
    assert len(check_option_parameters("coverage", cfg)) == 0
Example #2
0
def test_check_handle_option_config_not_existing():
    cfg = Config(DEFAULT_CFG)
    assert len(check_option_parameters("toto", cfg)) == 0
def test_check_handle_option_config_not_existing():
    env = create_env(default_cfg)
    assert len(check_option_parameters("toto", env)) == 0
def test_check_handle_option_defines_no_check():
    env = create_env(default_cfg)
    assert len(check_option_parameters("test", env)) == 0
def test_check_handle_option_config_not_existing():
    cfg = Config(DEFAULT_CFG)
    with pytest.raises(KeyError):
        check_option_parameters("toto", cfg)
Example #6
0
def test_check_handle_option_defines_no_check():
    cfg = Config(default_cfg)
    assert len(check_option_parameters("data", cfg)) == 0