diff --git a/docs/examples/introduction/stopwatch.py b/docs/examples/introduction/stopwatch.py index 3eb8336fa..15dff3a1c 100644 --- a/docs/examples/introduction/stopwatch.py +++ b/docs/examples/introduction/stopwatch.py @@ -72,7 +72,7 @@ class StopwatchApp(App): """A Textual app to manage stopwatches.""" def compose(self) -> ComposeResult: - """Called to ad widgets to the app.""" + """Called to add widgets to the app.""" yield Header() yield Footer() yield Container(Stopwatch(), Stopwatch(), Stopwatch(), id="timers") diff --git a/docs/examples/introduction/stopwatch06.py b/docs/examples/introduction/stopwatch06.py index 13d2a8263..726a07dc4 100644 --- a/docs/examples/introduction/stopwatch06.py +++ b/docs/examples/introduction/stopwatch06.py @@ -72,7 +72,7 @@ class StopwatchApp(App): """A Textual app to manage stopwatches.""" def compose(self) -> ComposeResult: - """Create child widgets for the app.""" + """Called to add widgets to the app.""" yield Header() yield Footer() yield Container(Stopwatch(), Stopwatch(), Stopwatch()) diff --git a/docs/introduction.md b/docs/introduction.md index 749cf9eca..5d865ef7a 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -2,7 +2,7 @@ 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 diff --git a/tests/utilities/test_app.py b/tests/utilities/test_app.py index 23e21f00a..016ffb5cb 100644 --- a/tests/utilities/test_app.py +++ b/tests/utilities/test_app.py @@ -103,6 +103,7 @@ class AppTest(App): # End of simulated time: we just shut down ourselves: assert not run_task.done() await self.shutdown() + await run_task return get_running_state_context_manager()