Beispiel #1
0
def test_invalid_yaml_passed_to_load_config(invalid_yaml):
    with raises(ConfigLoadError):
        load_config(invalid_yaml)
Beispiel #2
0
def default_config():
    return load_config(get_default_config_file())
Beispiel #3
0
def test_load_config(configfile):
    assert load_config(configfile) == {"default_opacity": 1, "flash_opacity": 0.5}
Beispiel #4
0
def test_invalid_yaml_passed_to_load_config(invalid_yaml):
    with raises(SystemExit):
        load_config(invalid_yaml)