Test quick shutdown.
(self)
| 396 | mock_kill.assert_called_once_with(12345, signal.SIGTERM) |
| 397 | |
| 398 | def test_shutdown_quick(self): |
| 399 | """Test quick shutdown.""" |
| 400 | arbiter = MockArbiter() |
| 401 | handlers = CommandHandlers(arbiter) |
| 402 | |
| 403 | with patch('os.kill') as mock_kill: |
| 404 | result = handlers.shutdown("quick") |
| 405 | |
| 406 | assert result["status"] == "shutting_down" |
| 407 | assert result["mode"] == "quick" |
| 408 | mock_kill.assert_called_once_with(12345, signal.SIGINT) |
| 409 | |
| 410 | |
| 411 | class TestShowAll: |
nothing calls this directly
no test coverage detected