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

Method test_hotkeys_start_with_duration

tests/test_commands.py:1286–1296  ·  view source on GitHub ↗

Test HOTKEYS START with duration parameter

(self, r)

Source from the content-addressed store, hash-verified

1284 @pytest.mark.onlynoncluster
1285 @skip_if_server_version_lt("8.5.240")
1286 def test_hotkeys_start_with_duration(self, r):
1287 """Test HOTKEYS START with duration parameter"""
1288 try:
1289 r.hotkeys_stop()
1290 except Exception:
1291 pass
1292
1293 result = r.hotkeys_start(
1294 count=10, metrics=[HotkeysMetricsTypes.CPU], duration=60
1295 )
1296 assert result == b"OK"
1297
1298 @pytest.mark.onlynoncluster
1299 @skip_if_server_version_lt("8.5.240")

Callers

nothing calls this directly

Calls 2

hotkeys_stopMethod · 0.45
hotkeys_startMethod · 0.45

Tested by

no test coverage detected