Skip to content

Commit

Permalink
tests: 忽略两处暂时无法覆盖的地方
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jun 13, 2024
1 parent d477570 commit d501d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nonebot_plugin_datastore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_caller_plugin_name() -> str:
"""
frame = inspect.currentframe()
if frame is None:
raise ValueError("无法获取当前栈帧")
raise ValueError("无法获取当前栈帧") # pragma: no cover

while frame := frame.f_back:
module_name = (module := inspect.getmodule(frame)) and module.__name__
Expand All @@ -26,7 +26,7 @@ def get_caller_plugin_name() -> str:
if plugin and plugin.id_ != "nonebot_plugin_datastore":
return plugin.name

raise ValueError("自动获取插件名失败")
raise ValueError("自动获取插件名失败") # pragma: no cover


def resolve_dot_notation(
Expand Down

0 comments on commit d501d60

Please sign in to comment.