<!-- markdownlint-disable MD033 MD041 -->
<p align="center">
<a href="https://nonebot.dev/"><img src="https://github.com/nonebot/nonebug/raw/master/assets/logo.png" width="200" height="200" alt="nonebot"></a>
</p>
<div align="center">
# NoneBug
<!-- prettier-ignore-start -->
<!-- markdownlint-disable-next-line MD036 -->
_✨ NoneBot2 测试框架 ✨_
<!-- prettier-ignore-end -->
</div>
<p align="center">
<a href="https://raw.githubusercontent.com/nonebot/nonebug/master/LICENSE">
<img src="https://img.shields.io/github/license/nonebot/nonebug" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebug">
<img src="https://img.shields.io/pypi/v/nonebug" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue" alt="python">
<a href="https://codecov.io/gh/nonebot/nonebug">
<img src="https://codecov.io/gh/nonebot/nonebug/branch/master/graph/badge.svg?token=LDK2OFR231"/>
</a>
<br />
<a href="https://jq.qq.com/?_wv=1027&k=5OFifDh">
<img src="https://img.shields.io/badge/qq%E7%BE%A4-768887710-orange?style=flat-square" alt="QQ Chat">
</a>
<a href="https://t.me/botuniverse">
<img src="https://img.shields.io/badge/telegram-botuniverse-blue?style=flat-square" alt="Telegram Channel">
</a>
<a href="https://discord.gg/VKtE6Gdc4h">
<img src="https://discordapp.com/api/guilds/847819937858584596/widget.png?style=shield" alt="Discord Server">
</a>
</p>
<p align="center">
<a href="https://nonebot.dev/docs/best-practice/testing/">文档</a>
</p>
## 安装
本工具为 [pytest](https://docs.pytest.org/en/stable/) 插件,需要配合 pytest 异步插件使用。
```bash
poetry add nonebug pytest-asyncio -G test
# 或者使用 anyio
poetry add nonebug anyio -G test
```
```bash
pdm add nonebug pytest-asyncio -dG test
# 或者使用 anyio
pdm add nonebug anyio -dG test
```
```bash
pip install nonebug pytest-asyncio
# 或者使用 anyio
pip install nonebug anyio
```
Raw data
{
"_id": null,
"home_page": "https://nonebot.dev/",
"name": "nonebug",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "nonebot, pytest, test, bot, onebot, cqhttp",
"author": "AkiraXie",
"author_email": "l997460364@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/29/56/01eb465dc135787e463423bf4762b883159a639d02c3a577ab4efc8f9d56/nonebug-0.4.2.tar.gz",
"platform": null,
"description": "<!-- markdownlint-disable MD033 MD041 -->\n\n<p align=\"center\">\n <a href=\"https://nonebot.dev/\"><img src=\"https://github.com/nonebot/nonebug/raw/master/assets/logo.png\" width=\"200\" height=\"200\" alt=\"nonebot\"></a>\n</p>\n\n<div align=\"center\">\n\n# NoneBug\n\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable-next-line MD036 -->\n_\u2728 NoneBot2 \u6d4b\u8bd5\u6846\u67b6 \u2728_\n<!-- prettier-ignore-end -->\n\n</div>\n\n<p align=\"center\">\n <a href=\"https://raw.githubusercontent.com/nonebot/nonebug/master/LICENSE\">\n <img src=\"https://img.shields.io/github/license/nonebot/nonebug\" alt=\"license\">\n </a>\n <a href=\"https://pypi.python.org/pypi/nonebug\">\n <img src=\"https://img.shields.io/pypi/v/nonebug\" alt=\"pypi\">\n </a>\n <img src=\"https://img.shields.io/badge/python-3.9+-blue\" alt=\"python\">\n <a href=\"https://codecov.io/gh/nonebot/nonebug\">\n <img src=\"https://codecov.io/gh/nonebot/nonebug/branch/master/graph/badge.svg?token=LDK2OFR231\"/>\n </a>\n <br />\n <a href=\"https://jq.qq.com/?_wv=1027&k=5OFifDh\">\n <img src=\"https://img.shields.io/badge/qq%E7%BE%A4-768887710-orange?style=flat-square\" alt=\"QQ Chat\">\n </a>\n <a href=\"https://t.me/botuniverse\">\n <img src=\"https://img.shields.io/badge/telegram-botuniverse-blue?style=flat-square\" alt=\"Telegram Channel\">\n </a>\n <a href=\"https://discord.gg/VKtE6Gdc4h\">\n <img src=\"https://discordapp.com/api/guilds/847819937858584596/widget.png?style=shield\" alt=\"Discord Server\">\n </a>\n</p>\n\n<p align=\"center\">\n <a href=\"https://nonebot.dev/docs/best-practice/testing/\">\u6587\u6863</a>\n</p>\n\n## \u5b89\u88c5\n\n\u672c\u5de5\u5177\u4e3a [pytest](https://docs.pytest.org/en/stable/) \u63d2\u4ef6\uff0c\u9700\u8981\u914d\u5408 pytest \u5f02\u6b65\u63d2\u4ef6\u4f7f\u7528\u3002\n\n```bash\npoetry add nonebug pytest-asyncio -G test\n# \u6216\u8005\u4f7f\u7528 anyio\npoetry add nonebug anyio -G test\n```\n\n```bash\npdm add nonebug pytest-asyncio -dG test\n# \u6216\u8005\u4f7f\u7528 anyio\npdm add nonebug anyio -dG test\n```\n\n```bash\npip install nonebug pytest-asyncio\n# \u6216\u8005\u4f7f\u7528 anyio\npip install nonebug anyio\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "nonebot2 test framework",
"version": "0.4.2",
"project_urls": {
"Documentation": "https://nonebot.dev/",
"Homepage": "https://nonebot.dev/",
"Repository": "https://github.com/nonebot/nonebug"
},
"split_keywords": [
"nonebot",
" pytest",
" test",
" bot",
" onebot",
" cqhttp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a04a7592e899cd5074a9b70df007afe9b6f8bbaa02b8e9c1ce7f5c5498634cb7",
"md5": "14b5669f5aa275171b15fe2d660ed3fb",
"sha256": "83d9229ec899819e9f5786eabc0c27b9dd0cd5d6e2e7438f59923ab822d5c555"
},
"downloads": -1,
"filename": "nonebug-0.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "14b5669f5aa275171b15fe2d660ed3fb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 15030,
"upload_time": "2024-10-31T02:24:24",
"upload_time_iso_8601": "2024-10-31T02:24:24.716301Z",
"url": "https://files.pythonhosted.org/packages/a0/4a/7592e899cd5074a9b70df007afe9b6f8bbaa02b8e9c1ce7f5c5498634cb7/nonebug-0.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "295601eb465dc135787e463423bf4762b883159a639d02c3a577ab4efc8f9d56",
"md5": "9f53c16f85bc034f6b0dfd96c299fec3",
"sha256": "002dac00fed1fbff97574f3dffab2237fc41473b3bf3e73d2730ae34895bc137"
},
"downloads": -1,
"filename": "nonebug-0.4.2.tar.gz",
"has_sig": false,
"md5_digest": "9f53c16f85bc034f6b0dfd96c299fec3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 12118,
"upload_time": "2024-10-31T02:24:25",
"upload_time_iso_8601": "2024-10-31T02:24:25.888981Z",
"url": "https://files.pythonhosted.org/packages/29/56/01eb465dc135787e463423bf4762b883159a639d02c3a577ab4efc8f9d56/nonebug-0.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-31 02:24:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nonebot",
"github_project": "nonebug",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebug"
}