summaryrefslogtreecommitdiff
path: root/test/test_plugin_applet.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_plugin_applet.py')
-rw-r--r--test/test_plugin_applet.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/test_plugin_applet.py b/test/test_plugin_applet.py
deleted file mode 100644
index a5aa5d9..0000000
--- a/test/test_plugin_applet.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import pytest
-from nonebug import App
-
-from .utils import make_fake_message, make_fake_event
-
-
-async def test_bili_applet(app: App):
- from ATRI.plugins.applet import bili_applet
-
- Message = make_fake_message()
-
- async with app.test_matcher(bili_applet) as ctx:
- bot = ctx.create_bot()
-
- msg = Message("BV1Ff4y1C7YR")
- event = make_fake_event(_message=msg)()
-
- ctx.receive_event(bot, event)
- ctx.should_call_send(
- event,
- """
- BV1Ff4y1C7YR INFO:
- Title: 【8K30fps】这可能是画质最高的Rick Roll (doge)
- Link: https://b23.tv/BV1Ff4y1C7YR
- """,
- True,
- )