Skip to content

Commit

Permalink
chore(deps): 更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Apr 16, 2024
1 parent c854700 commit 5ce147a
Show file tree
Hide file tree
Showing 7 changed files with 221 additions and 221 deletions.
418 changes: 209 additions & 209 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ tzdata = "*"

[tool.poetry.group.dev.dependencies]
nonebug = "^0.3.2"
pytest-cov = "^4.0.0"
pytest-cov = "^5.0.0"
pytest-mock = "^3.6.1"
pytest-asyncio = "^0.23.5"
pytest-xdist = "^3.3.1"
respx = "^0.20.1"
respx = "^0.21.1"

[tool.ruff]
line-length = 88
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/validation/fields/test_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def test_name_too_long(mocked_api: MockRouter) -> None:
"msg": "字符串长度不能超过 50 个字符",
"input": "looooooooooooooooooooooooooooooooooooooooooooooooooooooooong",
"ctx": {"max_length": 50},
"url": "https://errors.pydantic.dev/2.6/v/string_too_long",
"url": "https://errors.pydantic.dev/2.7/v/string_too_long",
}
]

Expand Down
10 changes: 5 additions & 5 deletions tests/utils/validation/fields/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def test_tags_color_missing(mocked_api: MockRouter) -> None:
"loc": ("tags", 0, "color"),
"msg": "字段不存在",
"input": {"label": "test"},
"url": "https://errors.pydantic.dev/2.6/v/missing",
"url": "https://errors.pydantic.dev/2.7/v/missing",
}
]

Expand Down Expand Up @@ -69,7 +69,7 @@ async def test_tags_label_invalid(mocked_api: MockRouter) -> None:
"msg": "字符串长度不能超过 10 个字符",
"input": "12345678901",
"ctx": {"max_length": 10},
"url": "https://errors.pydantic.dev/2.6/v/string_too_long",
"url": "https://errors.pydantic.dev/2.7/v/string_too_long",
}
]

Expand Down Expand Up @@ -106,7 +106,7 @@ async def test_tags_number_invalid(mocked_api: MockRouter) -> None:
{"label": "4", "color": "#ffffff"},
],
"ctx": {"field_type": "List", "max_length": 3, "actual_length": 4},
"url": "https://errors.pydantic.dev/2.6/v/too_long",
"url": "https://errors.pydantic.dev/2.7/v/too_long",
}
]

Expand Down Expand Up @@ -155,7 +155,7 @@ async def test_tags_json_not_list(mocked_api: MockRouter) -> None:
"loc": ("tags",),
"msg": "值不是合法的列表",
"input": {"test": "test"},
"url": "https://errors.pydantic.dev/2.6/v/list_type",
"url": "https://errors.pydantic.dev/2.7/v/list_type",
}
]

Expand All @@ -180,7 +180,7 @@ async def test_tags_json_not_dict(mocked_api: MockRouter) -> None:
"msg": "值不是合法的字典",
"input": "1",
"ctx": {"class_name": "Tag"},
"url": "https://errors.pydantic.dev/2.6/v/model_type",
"url": "https://errors.pydantic.dev/2.7/v/model_type",
}
]

Expand Down
2 changes: 1 addition & 1 deletion tests/utils/validation/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def test_adapter_info_validation_failed(mocked_api: MockRouter) -> None:
"msg": "字符串长度不能超过 10 个字符",
"input": "testtoolong",
"ctx": {"max_length": 10},
"url": "https://errors.pydantic.dev/2.6/v/string_too_long",
"url": "https://errors.pydantic.dev/2.7/v/string_too_long",
},
{
"type": "color_error",
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/validation/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def test_bot_info_validation_failed(mocked_api: MockRouter) -> None:
"msg": "字符串长度不能超过 50 个字符",
"input": "tooooooooooooooooooooooooooooooooooooooooooooooooog",
"ctx": {"max_length": 50},
"url": "https://errors.pydantic.dev/2.6/v/string_too_long",
"url": "https://errors.pydantic.dev/2.7/v/string_too_long",
},
{
"type": "homepage",
Expand All @@ -70,7 +70,7 @@ async def test_bot_info_validation_failed(mocked_api: MockRouter) -> None:
"msg": "字符串长度不能超过 10 个字符",
"input": "testtoolong",
"ctx": {"max_length": 10},
"url": "https://errors.pydantic.dev/2.6/v/string_too_long",
"url": "https://errors.pydantic.dev/2.7/v/string_too_long",
},
{
"type": "color_error",
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/validation/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def test_plugin_info_validation_failed(mocked_api: MockRouter) -> None:
"msg": "字符串长度不能超过 10 个字符",
"input": "testtoolong",
"ctx": {"max_length": 10},
"url": "https://errors.pydantic.dev/2.6/v/string_too_long",
"url": "https://errors.pydantic.dev/2.7/v/string_too_long",
},
{
"type": "color_error",
Expand Down

0 comments on commit 5ce147a

Please sign in to comment.