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

Method test_config_resetstat

tests/test_commands.py:1012–1018  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1010 @pytest.mark.onlynoncluster
1011 @skip_if_redis_enterprise()
1012 def test_config_resetstat(self, r):
1013 r.ping()
1014 prior_commands_processed = int(r.info()["total_commands_processed"])
1015 assert prior_commands_processed >= 1
1016 r.config_resetstat()
1017 reset_commands_processed = int(r.info()["total_commands_processed"])
1018 assert reset_commands_processed < prior_commands_processed
1019
1020 @skip_if_redis_enterprise()
1021 def test_config_set(self, r):

Callers

nothing calls this directly

Calls 3

config_resetstatMethod · 0.80
pingMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected