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

Method test_deploy

tests/cli/manager_test.py:95–104  ·  view source on GitHub ↗

Deploy docstring includes each executed command and runs each.

(self, mock_apply: mock.MagicMock, mock_build: mock.MagicMock,
                    mock_test: mock.MagicMock)

Source from the content-addressed store, hash-verified

93 @mock.patch.object(Manager, 'build')
94 @mock.patch.object(Manager, 'apply')
95 def test_deploy(self, mock_apply: mock.MagicMock, mock_build: mock.MagicMock,
96 mock_test: mock.MagicMock):
97 """Deploy docstring includes each executed command and runs each."""
98 for command in ['unit_test', 'build', 'apply']:
99 self.assertIn(command, inspect.getdoc(Manager.deploy))
100
101 self.manager.deploy()
102 mock_test.assert_called_once()
103 mock_build.assert_called_once()
104 mock_apply.assert_called_once()
105
106 @mock.patch.object(config_module, 'input', side_effect=mock_input)
107 @mock.patch.object(manager_module, 'print')

Callers

nothing calls this directly

Calls 1

deployMethod · 0.80

Tested by

no test coverage detected