summaryrefslogtreecommitdiff
path: root/test/test_plugin_anime_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_plugin_anime_search.py')
-rw-r--r--test/test_plugin_anime_search.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/test_plugin_anime_search.py b/test/test_plugin_anime_search.py
deleted file mode 100644
index 4b21d2d..0000000
--- a/test/test_plugin_anime_search.py
+++ /dev/null
@@ -1,32 +0,0 @@
-import pytest
-from nonebug import App
-
-from nonebot.adapters.onebot.v11 import MessageSegment
-
-from .utils import make_fake_message, make_fake_event
-
-
-async def test_saucenao(app: App):
- from ATRI.plugins.saucenao import saucenao
-
- Message = make_fake_message()
-
- async with app.test_matcher(saucenao) as ctx:
- bot = ctx.create_bot()
-
- msg = Message("以图搜图")
- event = make_fake_event(_message=msg)()
-
- ctx.receive_event(bot, event)
- ctx.should_call_send(event, "图呢?", True)
-
- msg = Message(
- MessageSegment.image(
- "https://jsd.imki.moe/gh/Kyomotoi/CDN@master/noting/88674944_p0.png"
- )
- )
- event = make_fake_event(_message=msg)()
-
- ctx.receive_event(bot, event)
- ctx.should_call_send(event, "失败了...", False)