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

Method test_shutdown

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

Source from the content-addressed store, hash-verified

8201 assert r.replicaof("NO", "ONE")
8202
8203 def test_shutdown(self, r: redis.Redis):
8204 r.execute_command = mock.MagicMock()
8205 r.execute_command("SHUTDOWN", "NOSAVE")
8206 r.execute_command.assert_called_once_with("SHUTDOWN", "NOSAVE")
8207
8208 @skip_if_server_version_lt("7.0.0")
8209 def test_shutdown_with_params(self, r: redis.Redis):

Callers

nothing calls this directly

Calls 1

execute_commandMethod · 0.45

Tested by

no test coverage detected