PaiGram/tests/integration/test_redis.py
洛水居室 233e7ab58d
♻️ PaiGram V4
Co-authored-by: luoshuijs <luoshuijs@outlook.com>
Co-authored-by: Karako <karakohear@gmail.com>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2023-03-14 09:27:22 +08:00

17 lines
289 B
Python

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()