fix for test fail

This commit is contained in:
Will McGugan
2022-08-24 09:39:00 +01:00
parent 5fe47da058
commit 9cc48db79f
4 changed files with 4 additions and 3 deletions

View File

@@ -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")

View File

@@ -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())

View File

@@ -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

View File

@@ -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()