File: test_demo.py

package info (click to toggle)
textual 2.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,084 kB
  • sloc: python: 85,423; lisp: 1,669; makefile: 101
file content (10 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from textual.demo.demo_app import DemoApp


async def test_demo():
    """Test the demo runs."""
    # Test he demo can at least run.
    # This exists mainly to catch screw-ups that might effect only certain Python versions.
    app = DemoApp()
    async with app.run_test() as pilot:
        await pilot.pause(0.1)