summaryrefslogtreecommitdiff
path: root/test/test_plugin_rich.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-02-14 19:19:16 +0800
committerKyomotoi <[email protected]>2022-02-14 19:20:56 +0800
commit1e41f8453856cf1b5a2163c196a6814ef97e9f2e (patch)
tree5057902290089cebe4ed59c8bddf14cedf283f0f /test/test_plugin_rich.py
parentd48a1405f7e6c476e28cc702528fb7ca87bd7f25 (diff)
downloadATRI-1e41f8453856cf1b5a2163c196a6814ef97e9f2e.tar.gz
ATRI-1e41f8453856cf1b5a2163c196a6814ef97e9f2e.tar.bz2
ATRI-1e41f8453856cf1b5a2163c196a6814ef97e9f2e.zip
🚚 对插件文件相关进行重命名
Diffstat (limited to 'test/test_plugin_rich.py')
-rw-r--r--test/test_plugin_rich.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/test_plugin_rich.py b/test/test_plugin_rich.py
deleted file mode 100644
index 3e63f4a..0000000
--- a/test/test_plugin_rich.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_rich(app: App):
- from ATRI.plugins.rich import bili_rich
-
- Message = make_fake_message()
-
- async with app.test_matcher(bili_rich) 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,
- )