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

Method test_config_resetstat

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

Source from the content-addressed store, hash-verified

698
699 @pytest.mark.onlynoncluster
700 async def test_config_resetstat(self, r: redis.Redis):
701 await r.ping()
702 prior_commands_processed = int((await r.info())["total_commands_processed"])
703 assert prior_commands_processed >= 1
704 await r.config_resetstat()
705 reset_commands_processed = int((await r.info())["total_commands_processed"])
706 assert reset_commands_processed < prior_commands_processed
707
708 async def test_config_set(self, r: redis.Redis):
709 await r.config_set("timeout", 70)

Callers

nothing calls this directly

Calls 3

config_resetstatMethod · 0.80
pingMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected