{"library":"pytest-textual-snapshot","title":"pytest-textual-snapshot","description":"Snapshot testing plugin for pytest that enables visual regression testing of Textual terminal applications. Version 1.1.0 requires Python >=3.8.1, <4.0.0. Regular releases.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pytest-textual-snapshot"],"cli":null},"imports":["from pytest_textual_snapshot import snapshot_app"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pytest\nfrom textual.app import App, ComposeResult\nfrom textual.widgets import Static\nfrom pytest_textual_snapshot import snapshot_app\n\nclass SimpleApp(App):\n    def compose(self) -> ComposeResult:\n        yield Static(\"Hello, World!\")\n\ndef test_snapshot(snapshot_app):\n    app = SimpleApp()\n    async with app.run_test() as pilot:\n        # Use snapshot_app fixture to capture the app's render\n        snapshot_app(app)\n","lang":"python","description":"Minimal test using the snapshot_app fixture to capture a Textual app's render.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}