From 08387943bafa6b68707cac1425c171732de5eaef Mon Sep 17 00:00:00 2001 From: Azide Date: Mon, 14 Mar 2022 22:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + tests/test_config_manager_admin.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8b8f3e5..0753ec4 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ __pycache__/ *.py[cod] *$py.class +venv_test/ # C extensions *.so diff --git a/tests/test_config_manager_admin.py b/tests/test_config_manager_admin.py index 77e9ac1..47c32b4 100644 --- a/tests/test_config_manager_admin.py +++ b/tests/test_config_manager_admin.py @@ -1,7 +1,10 @@ +import imp from nonebug import App from .utils import fake_admin_user, fake_private_message_event, fake_group_message_event, fake_superuser +from .conftest import app + import pytest @pytest.mark.asyncio @@ -63,5 +66,5 @@ async def test_query_with_superuser_group_tome(app: App): ctx.should_pass_rule() ctx.should_pass_permission() ctx.should_call_send( - event, '', True + event, Message("该功能只支持私聊使用,请私聊Bot"), True ) \ No newline at end of file