mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
19 lines
504 B
Python
19 lines
504 B
Python
from textual.app import App
|
|
from textual.containers import Horizontal
|
|
from textual.widgets import Footer, Tree
|
|
|
|
|
|
class TreeApp(App[None]):
|
|
def compose(self):
|
|
yield Horizontal(Tree("Dune"))
|
|
yield Footer()
|
|
|
|
|
|
async def test_shutdown():
|
|
# regression test for https://github.com/Textualize/textual/issues/4634
|
|
# Testing that an app with the footer doesn't deadlock
|
|
app = TreeApp()
|
|
print("Check for deadlock in test_shutdown.py")
|
|
async with app.run_test():
|
|
pass
|