* feat(infra): backend cookiecutter template with fastapi tortoise * feat(infra): cli cookiecutter template with typer entry point * feat(infra): fullstack cookiecutter template with sveltekit frontend * test(infra): cookiecutter template tests and render fixes * style(infra): ruff cleanup for cookiecutter template tests * style(infra): ruff format cookiecutter template tests * fix(infra): handle use_db no use_auth no in cookiecutter --------- Co-authored-by: opencode-agent <agent@opencode.local>
20 lines
No EOL
392 B
Python
20 lines
No EOL
392 B
Python
"""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 |