"""Pytest configuration for the CLI template."""

from __future__ import annotations

import pytest
from typer.testing import CliRunner

from {{ cookiecutter.project_name }} import cli


@pytest.fixture
def runner() -> CliRunner:
    """Typer CliRunner — invokes the app in-process."""
    return CliRunner()


@pytest.fixture
def app():
    """The Typer app instance."""
    return cli.app