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