New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 Add Chinese translation for docs/zh/docs/advanced/testing-database.md
#3821
🌐 Add Chinese translation for docs/zh/docs/advanced/testing-database.md
#3821
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3821 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 540 410 -130
Lines 13969 10281 -3688
===========================================
- Hits 13969 10281 -3688 ☔ View full report in Codecov by Sentry. |
📝 Docs preview for commit 47999f0 at: https://612ee4e2567a4837854f1020--fastapi.netlify.app |
docs/advanced/testing-database.md
|
||
您还可以使用[测试依赖项](testing-dependencies.md){.internal-link target=_blank}中的覆盖依赖项方法变更测试的数据库。 | ||
|
||
实现设置其它测试数据库、在测试后回滚数据、或预填测试数据等操作。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
您可能希望建立一个不同的数据库进行测试,在测试之后回滚数据,预先填充一些测试数据等等。
@@ -0,0 +1,97 @@ | |||
# 测试数据库 | |||
|
|||
您还可以使用[测试依赖项](testing-dependencies.md){.internal-link target=_blank}中的覆盖依赖项方法变更测试的数据库。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
您可以重写测试依赖项来更改数据库以进行测试。
|
||
本例中,要创建仅用于测试的临时数据库。 | ||
|
||
## 文件架构 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文件结构
…testing-database.md
docs/advanced/testing-database.md
docs/zh/docs/advanced/testing-database.md
📝 Docs preview for commit a1856ea at: https://649a08dcbc5da10984e671e8--fastapi.netlify.app |
Thanks for your work @jaystone776 😎 And thanks for your help @zy7y 🚀 |
As title