def test_echo_unknown_extension_error(output_dir, cli_runner) -> None:
    """Cli return error if extension incorrectly defined in template."""
    template_path = 'tests/test-extensions/unknown/'

    result = cli_runner(
        '--no-input',
        '--default-config',
        '--output-dir',
        output_dir,
        template_path,
    )

    assert result.exit_code == 1

    assert 'Unable to load extension: ' in result.output
Cli return error if extension incorrectly defined in template.
tests/test_cli.py