Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion nonebug/fixture.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from contextlib import nullcontext, asynccontextmanager
from contextlib import asynccontextmanager

import pytest
from async_asgi_testclient import TestClient
Expand All @@ -9,6 +9,11 @@
from . import NONEBOT_INIT_KWARGS, NONEBOT_START_LIFESPAN


@asynccontextmanager
async def nullcontext():
yield


@asynccontextmanager
async def lifespan_ctx():
import nonebot
Expand Down