Skip to content

Commit

Permalink
feat: unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
ramwin committed Feb 18, 2024
1 parent 59afbbc commit 76de626
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_rediscluster_schema.py
@@ -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 76de626

Please sign in to comment.