Browse Source

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

pull/11044/head
jaystone776 1 year ago
committed by GitHub
parent
commit
eaf394d364
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      docs/zh/docs/advanced/testing-events.md

7
docs/zh/docs/advanced/testing-events.md

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