Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Fix test_representation and test_empty_startupnodes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Grokzen committed Apr 28, 2019
1 parent 799085d commit f10d7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cluster_obj.py
Expand Up @@ -67,7 +67,7 @@ def execute_command(self, *args, **kwargs):


def test_representation(r):
assert re.search('^RedisCluster<[0-9\.\:\,].+>$', str(r))
assert re.search('^RedisCluster<[a-z0-9\.\:\,].+>$', str(r))


def test_blocked_strict_redis_args():
Expand Down Expand Up @@ -116,7 +116,7 @@ def test_empty_startup_nodes():
Test that exception is raised when empty providing empty startup_nodes
"""
with pytest.raises(RedisClusterException) as ex:
_get_client(RedisCluster, init_slot_cache=False, startup_nodes=[])
r = RedisCluster(startup_nodes=[])

assert unicode(ex.value).startswith("No startup nodes provided"), unicode(ex.value)

Expand Down

0 comments on commit f10d7ef

Please sign in to comment.