MCPcopy Create free account
hub / github.com/airbnb/binaryalert / test_destroy

Method test_destroy

tests/cli/manager_test.py:110–117  ·  view source on GitHub ↗

Destroy asks whether S3 objects should also be deleted.

(self, mock_check_call: mock.MagicMock, mock_call: mock.MagicMock,
                     mock_print: mock.MagicMock, mock_user_input: mock.MagicMock)

Source from the content-addressed store, hash-verified

108 @mock.patch.object(subprocess, 'call')
109 @mock.patch.object(subprocess, 'check_call')
110 def test_destroy(self, mock_check_call: mock.MagicMock, mock_call: mock.MagicMock,
111 mock_print: mock.MagicMock, mock_user_input: mock.MagicMock):
112 """Destroy asks whether S3 objects should also be deleted."""
113 self.manager.destroy()
114 mock_user_input.assert_called_once()
115 mock_print.assert_called_once()
116 mock_check_call.assert_called_once()
117 mock_call.assert_called_once()
118
119 @mock.patch.object(manager_module.live_test, 'run', return_value=False)
120 def test_live_test(self, mock_live_test: mock.MagicMock):

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected