테스트에서 이벤트 핸들러(startup 및 shutdown)를 실행해야 하는 경우, with 문과 함께 TestClient를 사용할 수 있습니다.
startup
shutdown
with
TestClient
{* ../../docs_src/app_testing/tutorial003.py hl[9:12,20:24] *}