textual-test-fixtures
Installation
SKILL.md
Textual Test Fixtures
Reusable pytest fixtures for efficient Textual application testing.
Quick Reference
# conftest.py
import pytest
from typing import AsyncIterator
@pytest.fixture
async def app_pilot() -> AsyncIterator[tuple[MyApp, Pilot]]:
"""Provide app with pilot for testing."""
app = MyApp()
async with app.run_test() as pilot:
yield app, pilot