mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix for test fail
This commit is contained in:
@@ -72,7 +72,7 @@ class StopwatchApp(App):
|
|||||||
"""A Textual app to manage stopwatches."""
|
"""A Textual app to manage stopwatches."""
|
||||||
|
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
"""Called to ad widgets to the app."""
|
"""Called to add widgets to the app."""
|
||||||
yield Header()
|
yield Header()
|
||||||
yield Footer()
|
yield Footer()
|
||||||
yield Container(Stopwatch(), Stopwatch(), Stopwatch(), id="timers")
|
yield Container(Stopwatch(), Stopwatch(), Stopwatch(), id="timers")
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class StopwatchApp(App):
|
|||||||
"""A Textual app to manage stopwatches."""
|
"""A Textual app to manage stopwatches."""
|
||||||
|
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
"""Create child widgets for the app."""
|
"""Called to add widgets to the app."""
|
||||||
yield Header()
|
yield Header()
|
||||||
yield Footer()
|
yield Footer()
|
||||||
yield Container(Stopwatch(), Stopwatch(), Stopwatch())
|
yield Container(Stopwatch(), Stopwatch(), Stopwatch())
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Welcome to the Textual Introduction!
|
Welcome to the Textual Introduction!
|
||||||
|
|
||||||
By the end of this page you should have a good idea of the steps involved in creating an application with Textual.
|
By the end of this page you should have a solid understanding of app development with Textual.
|
||||||
|
|
||||||
!!! quote
|
!!! quote
|
||||||
|
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ class AppTest(App):
|
|||||||
# End of simulated time: we just shut down ourselves:
|
# End of simulated time: we just shut down ourselves:
|
||||||
assert not run_task.done()
|
assert not run_task.done()
|
||||||
await self.shutdown()
|
await self.shutdown()
|
||||||
|
await run_task
|
||||||
|
|
||||||
return get_running_state_context_manager()
|
return get_running_state_context_manager()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user