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

Method test_hotkeys_stop

tests/test_commands.py:1346–1358  ·  view source on GitHub ↗

Test HOTKEYS STOP command

(self, r)

Source from the content-addressed store, hash-verified

1344 @pytest.mark.onlynoncluster
1345 @skip_if_server_version_lt("8.5.240")
1346 def test_hotkeys_stop(self, r):
1347 """Test HOTKEYS STOP command"""
1348 try:
1349 r.hotkeys_stop()
1350 except Exception:
1351 pass
1352
1353 # Start a collection session
1354 r.hotkeys_start(count=10, metrics=[HotkeysMetricsTypes.CPU])
1355
1356 # Stop the session
1357 result = r.hotkeys_stop()
1358 assert result == b"OK"
1359
1360 @pytest.mark.onlynoncluster
1361 @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