def METHOD_NAME(tmp_path: Path, raw, exception):
    config_filepath = tmp_path / "config.yml"
    config_filepath.write_text(raw)
    with raises(exception):
        with mock.patch.dict(environ, {}):
            FixtureConfig(config_filepath)