Skip to content

Commit

Permalink
🐛 fix nonebot import usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu committed Apr 15, 2024
1 parent 6c5c8a3 commit 15dc1f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nonebug/mixin/call_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
)

import pytest
from nonebot.compat import model_dump

from nonebug.base import BaseApp, Context

Expand Down Expand Up @@ -189,6 +188,8 @@ def got_call_send(
message: Union[str, "Message", "MessageSegment"],
**kwargs: Any,
) -> Any:
from nonebot.compat import model_dump

if self.wait_list.empty():
pytest.fail(
"Application has no send call but expected "
Expand Down

0 comments on commit 15dc1f5

Please sign in to comment.