def test_find_template(repo_name, env, error_expectation, expected) -> None:
    """Verify correctness of `find.find_template` path detection."""
    repo_dir = Path('tests', repo_name)

    with error_expectation:
        template = find.find_template(repo_dir, env)

        test_dir = Path(repo_dir, expected)
        assert template == test_dir
Verify correctness of `find.find_template` path detection.
tests/test_find.py