mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-16 12:57:44 -04:00
🌐 Add Chinese translation for docs/zh/docs/advanced/testing-events.md (#3818)
This commit is contained in:
7
docs/zh/docs/advanced/testing-events.md
Normal file
7
docs/zh/docs/advanced/testing-events.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# 测试事件:启动 - 关闭
|
||||
|
||||
使用 `TestClient` 和 `with` 语句,在测试中运行事件处理器(`startup` 与 `shutdown`)。
|
||||
|
||||
```Python hl_lines="9-12 20-24"
|
||||
{!../../../docs_src/app_testing/tutorial003.py!}
|
||||
```
|
||||
Reference in New Issue
Block a user