def METHOD_NAME(self, tmp_path, caplog):
    (path := tmp_path / "file").write_text(
        textwrap.dedent(
            """\
        [foo]
        sync-uri = git://foo.git"""
        )
    )
    load_repos_conf(path)
    assert "'foo' repo missing location setting" in caplog.text