def test_should_find_existing_cookiecutter(
    template, user_config_data, cloned_cookiecutter_path
) -> None:
    """Find `cookiecutter.json` in sub folder created by `cloned_cookiecutter_path`."""
    project_dir, cleanup = repository.determine_repo_dir(
        template=template,
        abbreviations={},
        clone_to_dir=user_config_data['cookiecutters_dir'],
        checkout=None,
        no_input=True,
        directory='my-dir',
    )

    assert cloned_cookiecutter_path == project_dir
    assert not cleanup
Find `cookiecutter.json` in sub folder created by `cloned_cookiecutter_path`.
tests/repository/test_determine_repo_dir_finds_subdirectories.py