def test_finds_local_repo(tmp_path) -> None:
    """A valid local repository should be returned."""
    project_dir, cleanup = repository.determine_repo_dir(
        'tests/fake-repo',
        abbreviations={},
        clone_to_dir=str(tmp_path),
        checkout=None,
        no_input=True,
    )

    assert project_dir == 'tests/fake-repo'
    assert not cleanup
A valid local repository should be returned.
tests/repository/test_determine_repository_should_use_local_repo.py