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

Method test_shutdown_with_params

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

Source from the content-addressed store, hash-verified

8207
8208 @skip_if_server_version_lt("7.0.0")
8209 def test_shutdown_with_params(self, r: redis.Redis):
8210 r.execute_command = mock.MagicMock()
8211 r.execute_command("SHUTDOWN", "SAVE", "NOW", "FORCE")
8212 r.execute_command.assert_called_once_with("SHUTDOWN", "SAVE", "NOW", "FORCE")
8213 r.execute_command("SHUTDOWN", "ABORT")
8214 r.execute_command.assert_called_with("SHUTDOWN", "ABORT")
8215
8216 @pytest.mark.replica
8217 @pytest.mark.xfail(strict=False)

Callers

nothing calls this directly

Calls 1

execute_commandMethod · 0.45

Tested by

no test coverage detected