mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-22 21:08:23 -05:00
270 B
270 B
Testing Events, startup and shutdown
When you need your event handlers (startup and shutdown) to run in your tests, you can use the TestClient with a with statement:
{!./src/app_testing/tutorial003.py!}