def test_cookiecutter_nested_templates(
    mocker, template_dir: str, output_dir: str
) -> None:
    """Verify cookiecutter nested configuration files mechanism."""
    mock_generate_files = mocker.patch("cookiecutter.main.generate_files")
    main_dir = (Path("tests") / template_dir).resolve()
    main.cookiecutter(f"{main_dir}", no_input=True)
    expected = (Path(main_dir) / output_dir).resolve()
    assert mock_generate_files.call_args[1]["repo_dir"] == f"{expected}"
Verify cookiecutter nested configuration files mechanism.
tests/test_cookiecutter_nested_templates.py