Skip to content

Commit

Permalink
更新测试和README
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl committed Oct 19, 2024
1 parent 7b028a9 commit 9f14c5a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ _✨ NoneBot 日麻记分器插件 ✨_
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
</p>

支持适配器:[OneBot V11](https://onebot.adapters.nonebot.dev/)[QQ Guild](https://github.com/nonebot/adapter-qqguild)
支持适配器:[OneBot V11](https://onebot.adapters.nonebot.dev/)~~[QQ Guild](https://github.com/nonebot/adapter-qqguild)~~

## 功能

Expand Down
10 changes: 0 additions & 10 deletions src/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
import pytest


class MyTest:
@pytest.fixture(autouse=True)
def load_pixivbot(self, nonebug_init):
import nonebot # 这里的导入必须在函数内

# 加载插件
return nonebot.load_plugins("nonebot_plugin_mahjong_scoreboard")
13 changes: 13 additions & 0 deletions src/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import nonebot
import pytest
from nonebot.adapters.onebot.v11 import Adapter


@pytest.fixture(scope="session", autouse=True)
def load_bot():
# 加载适配器
driver = nonebot.get_driver()
driver.register_adapter(Adapter)

# 加载插件
nonebot.load_plugin("nonebot_plugin_mahjong_scoreboard")

0 comments on commit 9f14c5a

Please sign in to comment.