Skip to content

Commit 3be9d52

Browse files
committed
test: 完善解析依赖的测试
1 parent 5698dd6 commit 3be9d52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/utils/docker_test/test_parse_requirements.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ def test_parse_requirements():
33
from src.providers.docker_test.plugin_test import parse_requirements
44

55
output = """
6-
nonebot2==2.4.0 ; python_version >= "3.9" and python_version < "4.0"
6+
anyio==4.6.2.post1 ; python_version >= "3.9" and python_version < "4.0"
7+
nonebot2[httpx]==2.4.0 ; python_version >= "3.9" and python_version < "4.0"
78
nonebug==0.4.2 ; python_version >= "3.9" and python_version < "4.0"
89
pydantic-core==2.27.0 ; python_version >= "3.9" and python_version < "4.0"
910
pydantic==2.10.0 ; python_version >= "3.9" and python_version < "4.0"
@@ -12,6 +13,7 @@ def test_parse_requirements():
1213
requirements = parse_requirements(output)
1314

1415
assert requirements == {
16+
"anyio": "4.6.2.post1",
1517
"nonebot2": "2.4.0",
1618
"nonebug": "0.4.2",
1719
"pydantic-core": "2.27.0",

0 commit comments

Comments
 (0)