mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-07-25 17:52:39 +00:00
📝 migrate admonition title syntax to Docusaurus v3 bracket form
This commit is contained in:
@@ -14,7 +14,7 @@ import TabItem from "@theme/TabItem";
|
||||
|
||||
为了保证代码的正确运行,我们不仅需要对错误进行跟踪,还需要对代码进行正确性检验,也就是测试。NoneBot 提供了一个测试工具——NoneBug,它是一个 [pytest](https://docs.pytest.org/en/stable/) 插件,可以帮助我们便捷地进行单元测试。
|
||||
|
||||
:::tip 提示
|
||||
:::tip[提示]
|
||||
建议在阅读本文档前先阅读 [pytest 官方文档](https://docs.pytest.org/en/stable/)来了解 pytest 的相关术语和基本用法。
|
||||
:::
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ NoneBug 提供了六种定义 `Rule` 和 `Permission` 预期行为的方法:
|
||||
- `should_not_pass_permission`
|
||||
- `should_ignore_permission`
|
||||
|
||||
:::tip 提示
|
||||
:::tip[提示]
|
||||
事件响应器类型的检查属于 `Permission` 的一部分,因此可以通过 `should_pass_permission` 和 `should_not_pass_permission` 方法来断言事件响应器类型的检查。
|
||||
:::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user