chore(test): 声明 pytest-asyncio 依赖并启用 asyncio_mode=auto(Task1 异步测试可复现)
This commit is contained in:
+2
-1
@@ -22,13 +22,14 @@ dependencies = [
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest>=8.0", "pytest-cov>=7.0"]
|
||||
dev = ["pytest>=8.0", "pytest-cov>=7.0", "pytest-asyncio>=0.23"]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
asyncio_mode = "auto"
|
||||
addopts = "--cov=genesis --cov-report=term-missing"
|
||||
norecursedirs = ["*.egg-info", "coverage", "test-execution-log.txt"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user