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

Method test_live_test

tests/cli/manager_test.py:120–124  ·  view source on GitHub ↗

Live test wrapper raises TestFailureError if appropriate.

(self, mock_live_test: mock.MagicMock)

Source from the content-addressed store, hash-verified

118
119 @mock.patch.object(manager_module.live_test, 'run', return_value=False)
120 def test_live_test(self, mock_live_test: mock.MagicMock):
121 """Live test wrapper raises TestFailureError if appropriate."""
122 with self.assertRaises(TestFailureError):
123 self.manager.live_test()
124 mock_live_test.assert_called_once()
125
126 @mock.patch.object(manager_module.boto3, 'resource')
127 def test_purge_queue(self, mock_resource: mock.MagicMock):

Callers

nothing calls this directly

Calls 1

live_testMethod · 0.80

Tested by

no test coverage detected