MCPcopy
hub / github.com/redis/redis-py / test_client_setname

Method test_client_setname

tests/test_asyncio/test_commands.py:535–543  ·  view source on GitHub ↗
(self, r: redis.Redis)

Source from the content-addressed store, hash-verified

533 @skip_if_server_version_lt("2.6.9")
534 @pytest.mark.onlynoncluster
535 async def test_client_setname(self, r: redis.Redis):
536 assert await r.client_setname("redis_py_test")
537 assert_resp_response(
538 r,
539 await r.client_getname(),
540 "redis_py_test",
541 b"redis_py_test",
542 "redis_py_test",
543 )
544
545 @skip_if_server_version_lt("7.2.0")
546 async def test_client_setinfo(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 3

assert_resp_responseFunction · 0.90
client_setnameMethod · 0.80
client_getnameMethod · 0.80

Tested by

no test coverage detected