fastapi/docs/ko/docs/advanced/testing-events.md

262 B

이벤트 테스트: 시작 - 종료

테스트에서 이벤트 핸들러(startupshutdown)를 실행해야 하는 경우, with 문과 함께 TestClient를 사용할 수 있습니다.

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