def METHOD_NAME(self, tmp_path, caplog):
    # default section isn't required as long as gentoo repo exists
    (path := tmp_path / "file").write_text(
        textwrap.dedent(
            """\
        [foo]
        location = /var/gentoo/repos/foo
        [gentoo]
        location = /var/gentoo/repos/gentoo"""
        )
    )
    defaults, repos = load_repos_conf(path)
    assert defaults["main-repo"] == "gentoo"
    assert list(repos.keys()) == ["foo", "gentoo"]
    assert not caplog.text