def METHOD_NAME(self, tmp_path):
    # undefined main repo with 'gentoo' missing
    (path := tmp_path / "file").write_text(
        textwrap.dedent(
            """\
        [foo]
        location = /var/gentoo/repos/foo"""
        )
    )
    with pytest.raises(config_errors.UserConfigError):
        load_repos_conf(path)