mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
✅ 添加单元测试 (#513)
* ➕ 添加测试依赖 nonebug * ➕ 添加测试依赖 pytest-asyncio * 🔧 配置 pytest * 🙈 更新 .gitignore * ➕ 添加 test 依赖 pytest-cov * 🔧 配置 pytest * ✅ 添加测试 * 👷 添加 Test CI * 💚 暂时移除 3.13 的测试
This commit is contained in:
@@ -63,7 +63,14 @@ typecheck = [
|
||||
"types-lxml>=2024.9.16",
|
||||
"types-pillow>=10.2.0.20240822",
|
||||
]
|
||||
test = ["nonebot-adapter-satori>=0.12.6", "nonebot-plugin-orm[default]>=0.7.6", "nonebot2[aiohttp,fastapi]>=2.3.3"]
|
||||
test = [
|
||||
"nonebot-adapter-satori>=0.12.6",
|
||||
"nonebot-plugin-orm[default]>=0.7.6",
|
||||
"nonebot2[aiohttp,fastapi]>=2.3.3",
|
||||
"nonebug>=0.4.1",
|
||||
"pytest-asyncio>=0.24.0",
|
||||
"pytest-cov>=6.0.0",
|
||||
]
|
||||
debug = ["matplotlib>=3.9.2", "memory-profiler>=0.61.0", "objprint>=0.2.3", "pyqt6>=6.7.1", "viztracer>=0.17.0"]
|
||||
release = ["bump-my-version>=0.28.0"]
|
||||
|
||||
@@ -163,5 +170,9 @@ filename = "pyproject.toml"
|
||||
search = "version = \"{current_version}\""
|
||||
replace = "version = \"{new_version}\""
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
asyncio_default_fixture_loop_scope = "session"
|
||||
|
||||
[tool.nonebot]
|
||||
plugins = ["nonebot_plugin_tetris_stats"]
|
||||
|
||||
Reference in New Issue
Block a user