Skip to content

Commit

Permalink
test: 修复测试报错
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jan 21, 2022
1 parent 03a9129 commit 116a405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_plugin_info_validation_failed(mocker: MockerFixture) -> None:

assert (
e.value.message
== """> Plugin: name\n\n**⚠️ 在发布检查过程中,我们发现以下问题:**\n<pre><code><li>⚠️ 包 <a href="https://pypi.org/project/project_link_failed/">project_link_failed</a> 未发布至 PyPI。<dt>请将您的包发布至 PyPI。</dt></li><li>⚠️ 插件加载失败: 项目信息不全。<dt>请确保插件能成功加载。</dt></li><li>⚠️ 项目 <a href="https://www.baidu.com">主页</a> 返回状态码 404。<dt>请确保您的项目主页可访问。</dt></li><li>⚠️ 第 2 个标签名称过长<dt>请确保标签名称不超过 10 个字符。</dt></li><li>⚠️ 第 2 个标签颜色错误<dt>请确保标签颜色符合十六进制颜色码规则。</dt></li></code></pre>"""
== """> Plugin: name\n\n**⚠️ 在发布检查过程中,我们发现以下问题:**\n<pre><code><li>⚠️ 包 <a href="https://pypi.org/project/project_link_failed/">project_link_failed</a> 未发布至 PyPI。<dt>请将您的包发布至 PyPI。</dt></li><li>⚠️ 插件加载失败: 插件信息不全。<dt>请确保插件能成功加载。</dt></li><li>⚠️ 项目 <a href="https://www.baidu.com">主页</a> 返回状态码 404。<dt>请确保您的项目主页可访问。</dt></li><li>⚠️ 第 2 个标签名称过长<dt>请确保标签名称不超过 10 个字符。</dt></li><li>⚠️ 第 2 个标签颜色错误<dt>请确保标签颜色符合十六进制颜色码规则。</dt></li></code></pre>"""
)
calls = [
mocker.call("https://pypi.org/pypi/project_link_failed/json"),
Expand Down

0 comments on commit 116a405

Please sign in to comment.