PaiGram/tests/integration/test_redis.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
289 B
Python
Raw Normal View History

from typing import TYPE_CHECKING
import pytest
if TYPE_CHECKING:
from core.dependence.redisdb import RedisDB
@pytest.mark.asyncio
async def test_mysql(redis: "RedisDB"):
assert redis
assert redis.client
async def test_redis_ping(redis: "RedisDB"):
await redis.ping()