Skip to content

Commit

Permalink
feat: unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
ramwin committed May 4, 2024
1 parent ab3b226 commit 1670c81
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_rediscluster_schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Xiang Wang <ramwin@qq.com>


import unittest

from redis import Redis
from redis.cluster import RedisCluster


class Test(unittest.TestCase):

def test(self):
res = Redis.from_url("rediscluster://localhost:7000")
self.assertIsInstance(res, RedisCluster)

0 comments on commit 1670c81

Please sign in to comment.