🌐 Add Chinese translation for `docs/zh/docs/advanced/testing-events.md` (#3818)

This commit is contained in:
jaystone776 2024-01-29 02:21:02 +08:00 committed by GitHub
parent 92cf191f1f
commit eaf394d364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# 测试事件:启动 - 关闭
使用 `TestClient``with` 语句,在测试中运行事件处理器(`startup` 与 `shutdown`)。
```Python hl_lines="9-12 20-24"
{!../../../docs_src/app_testing/tutorial003.py!}
```