签入版本
CI / lint (push) Canceled after 0s
CI / test (push) Canceled after 0s

This commit is contained in:
2026-09-16 10:08:07 +08:00
commit fda0fe1a53
820 changed files with 97186 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
"""Redis 集成测试。"""
import pytest
from core.redis import redis
pytestmark = pytest.mark.integration
TEST_KEY = "test:djangoadmin:ping"
def test_redis_set_get():
redis.set(TEST_KEY, "pong")
assert redis.get(TEST_KEY) == "pong"
redis.delete(TEST_KEY)
assert redis.get(TEST_KEY) is None