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