修复坏枪从来没有运行过的单元测试,为项目引入单元测试框架(终于。。)

This commit is contained in:
2026-03-07 13:16:24 +08:00
parent a1c9f9bccb
commit 88861f4264
7 changed files with 1385 additions and 1309 deletions

View File

@ -34,6 +34,8 @@ dependencies = [
"shapely (>=2.1.2,<3.0.0)",
"mcstatus (>=12.2.1,<13.0.0)",
"borax (>=4.1.3,<5.0.0)",
"pytest (>=8.0.0,<9.0.0)",
"nonebug (>=0.4.3,<0.5.0)",
]
[tool.poetry]
@ -52,8 +54,14 @@ priority = "primary"
[dependency-groups]
dev = [
"rust-just (>=1.43.0,<2.0.0)",
"pytest (>=9.0.1,<10.0.0)",
"pytest-asyncio (>=1.3.0,<2.0.0)"
]
dev = ["rust-just (>=1.43.0,<2.0.0)", "pytest-asyncio (>=1.3.0,<2.0.0)"]
[tool.pytest.ini_options]
testpaths = "tests"
python_files = "test_*.py"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.nonebot]
# plugin_dirs = ["konabot/plugins/"]
plugin_dirs = []