You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

239 B

Testing Events: startup - shutdown

When you need your event handlers (startup and shutdown) to run in your tests, you can use the TestClient with a with statement:

{* ../../docs_src/app_testing/tutorial003.py hl[9:12,20:24] *}