Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added correct annotations
  • Loading branch information
vladvildanov committed Jan 6, 2025
commit c3f964a6f48895f453fea99b359fcf3ff26f73d9
15 changes: 12 additions & 3 deletions tests/test_connection_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
import redis
from redis.cache import CacheConfig
from redis.connection import CacheProxyConnection, Connection, to_bool
from redis.utils import SSL_AVAILABLE

from .conftest import _get_client, skip_if_redis_enterprise, skip_if_server_version_lt
from redis.utils import HIREDIS_AVAILABLE, SSL_AVAILABLE

from .conftest import (
_get_client,
skip_if_redis_enterprise,
skip_if_resp_version,
skip_if_server_version_lt,
)
from .test_pubsub import wait_for_message


Expand Down Expand Up @@ -197,6 +202,10 @@ def test_repr_contains_db_info_unix(self):
expected = "path=abc,db=0,client_name=test-client"
assert expected in repr(pool)

@pytest.mark.skipif(HIREDIS_AVAILABLE, reason="PythonParser only")
@pytest.mark.onlynoncluster
@skip_if_resp_version(2)
@skip_if_server_version_lt("7.4.0")
def test_initialise_pool_with_cache(self, master_host):
pool = redis.BlockingConnectionPool(
connection_class=Connection,
Expand Down
Loading