textual-testing
Installation
SKILL.md
Textual Testing
Functional testing for Textual applications using App.run_test() and the Pilot class.
Quick Start
async def test_my_app():
"""Test a Textual application."""
app = MyApp()
async with app.run_test() as pilot:
# Interact with app
await pilot.press("enter")
await pilot.pause()
# Assert on state
widget = pilot.app.query_one("#status")
assert widget.renderable == "Done"
Related skills